: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// Preventing to direct access
defined( 'ABSPATH' ) OR die( 'Direct access not acceptable!' );
class WWS_GDPR_Compliance {
public function __construct() {
if ( 'yes' !== get_option( 'wws_gdpr_status' ) ) {
add_action( 'wws_action_plugin', array( $this, 'display_gdpr' ) );
public function display_gdpr() {
<label for="wws-gdpr-checkbox">
<input type="checkbox" id="wws-gdpr-checkbox"> <?php echo $this->get_gdpr_link(); ?>
public function get_gdpr_link() {
$gdpr_page_id = get_option( 'wws_gdpr_privacy_page' );
'<a href="' . get_permalink( $gdpr_page_id ) . '" target="_blank">' . get_the_title( $gdpr_page_id ) . '</a>',
get_option( 'wws_gdpr_message' )
return do_shortcode( $gdpr_msg );
} // end of WWS_GDPR_Compliance class
$wws_gdpr_compliance = new WWS_GDPR_Compliance;