• Resolved Corey Worrell

    (@coreyw)


    I see the note about how conditions do not affect admins who are logged in, but it is very annoying to be working on pages and navigating website while having to constantly close any active popups. Is there a way to disable this, or to only show popup during a specific preview (special URL flag, etc)? Thanks very much.

Viewing 1 replies (of 1 total)
  • Plugin Author Brave

    (@getbrave)

    We will soon add an option to disable popups for admins. For now, you will have to disable it with Custom PHP code. To do that follow these steps:

    1. First install this plugin: https://wordpress.org/plugins/code-snippets/
    2. Then go to Settings > PHP Inserter, and add this code:
    function bravepopup_hide_campaigns_for_admins( $popups ) {
       if(current_user_can('activate_plugins')){  return [];  }
       return $popups;
    }
    add_filter( 'bravepop_loadable_campaigns', 'bravepopup_hide_campaigns_for_admins' );

    3. Update and none of the popups will show up when you are logged in as an admin.

Viewing 1 replies (of 1 total)
  • The topic ‘Is there a way to disable popup for admin on every page?’ is closed to new replies.