• Resolved gfdesign

    (@gfdesign)


    Dear support
    Is there any filter to remove the metabox in the dashboard screen?
    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi gfdesign,

    thanks for reaching out.

    You can disable the metabox when you open the Screen Options at the top right of the dashboard and disable Ads Dashboard.

    The action hook the metabox is registered through is wp_dashboard_setup. I don’t have an example of using it to remove the Advanced Ads metabox at hand. If you let me know why the option above would not work for you then I can look into a solution.

    Enjoy your Sunday!

    Thomas

    Thread Starter gfdesign

    (@gfdesign)

    Hi Thomas
    Thanks for replying a Sunday.
    I’d like to hide that metabox for all non-admin users since they could get confused (according to user profile of my site).
    If you have any hook and code about how to use, I’d be grateful.
    Best regards

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for your feedback.

    This code can go into the functions.php of your theme. It will remove the widget for all users.

    
    add_action( 'wp_dashboard_setup', 'remove_aa_dashboard_widget', 20 );
    function remove_aa_dashboard_widget(){
    	remove_meta_box( 'advads_dashboard_widget', 'dashboard', 'side' );
    }
    

    Please let me know if you need anything else.

    Thomas

    Thread Starter gfdesign

    (@gfdesign)

    Hi Thomas
    It works perfectly
    As always, excellent support
    Best regards from Argentina

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove metabox from dashboard’ is closed to new replies.