Support » Plugin: Ad Blocker Notify Lite » Adblock dashboard is showing to Subscribers

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Hardeep Asrani

    (@hardeepasrani)

    Hi Johnny,

    You can add the following to your functions.php file or a site-specific plugin to remove it for non-admins:

    function remove_dashboard_adblock() {
    	if ( ! is_admin() ) {
    	        remove_meta_box( 'an_dashboard_widgets', 'dashboard', 'normal' );
    	}
    }
    add_action( 'admin_init', 'remove_dashboard_adblock', 99 );

    Let me know if it works. 🙂

    Thread Starter Johnny Black

    (@johnnyrc)

    Hi,

    nope, it’s not working 🙁

    Plugin Contributor Themeisle

    (@themeisle)

    Hello @johnnyrc,

    The latest version of 2.1 should fix this problem and show the widget only to proper admins.

    Thanks !

    Thread Starter Johnny Black

    (@johnnyrc)

    indeed it does, thank you 🙂
    But i think something is wrong -> https://postimg.org/image/3womkazh3

    Where is the graph from admin dashboard ?

    Plugin Contributor Themeisle

    (@themeisle)

    Hey,

    If you have AdBlock enabled, you will not see them as the extension will block them.

    Thanks !

    Thread Starter Johnny Black

    (@johnnyrc)

    Hello,

    I dont have Adblock enabled.
    Before the update (previous version) where i put the red arrow it was a graph, now it is no more, any ideeas why ? Did you guys disable it ?

    Hi,
    We gave the code to disable this widget for all users dashboard. Only Administrator can view this at his page. Are you not able to see it at administrator.
    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adblock dashboard is showing to Subscribers’ is closed to new replies.