options = $settings; } function adtoniq_protection_settings() { register_setting( 'adtoniq-protection-settings-group', 'adtoniq-protection-status' ); register_setting( 'adtoniq-protection-settings-group', 'adtoniq-protection-url' ); register_setting( 'adtoniq-protection-settings-group', 'adtoniq-protection-css' ); register_setting( 'adtoniq-protection-settings-group', 'adtoniq-protection-saved' ); } function adtoniq_protection_head_injection() { $status = $this->options['status']; if ($status == 'allButHome' || $status == 'all') echo ""; } /** * Show save modal * * @since 4.0.0 */ function adtoniq_protection_render_update() { ?>

Changes Saved!

options['status']; $protectUrl = $this->options['url']; $protectCss = $this->options['cssSelector']; $saved = $this->options['saved']; // if ($saved === 'saved') { // $this->adtoniq_protection_render_update(); // adtoniq_update_option('adtoniq-protection-saved', '', true); // } ?>

Protection Protect your content and functionality

Protection works in conjunction with messaging to lock users out of your site or parts of it as an incentive to opt in to choices that benefit you. If you enable protection, ad blocked users who have not opted in to your choice will be locked out. You can choose which parts of your site are protected.