• Resolved summerfeeling

    (@summerfeeling)


    Hello,

    I’ve been getting more and more requests from customers lately that they feel confused about the new statistics in the dashboard. I have seen that you can disable this in the settings. But I can’t log into 200+ websites to disable that. Via MainWP, I would have the option to push out some code to functions.php. Can you help me with a code there, please?

    Thanks in advance and kind regards,
    Levent

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPChef

    (@wpchefgadget)

    Hello Levent,

    add_action('wp_dashboard_setup', 'disable_llar_dashboard_widget');
    function disable_llar_dashboard_widget() {
       global $wp_meta_boxes;
       unset($wp_meta_boxes['dashboard']['normal']['high']['llar_stats_widget']);
    }
    Thread Starter summerfeeling

    (@summerfeeling)

    You’re pretty cool. Thank you so much. <3

    Although I consider this widget very interesting. But someone who is not familiar with it, it can be very confusing. Wish you all the best and thanks for the great work. (:

    Plugin Author WPChef

    (@wpchefgadget)

    You are welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide Dashboard Widget with Code?’ is closed to new replies.