Support » Plugin: MultilingualPress » How to remove the dashboard widget?

  • Resolved miikewordpress

    (@miikewordpress)


    Hello,

    I would like to know how I can remove the “Untranslated Posts” widget from the dashboard.

    I used unset($wp_meta_boxes[‘dashboard’]); to clean up the dashboard widgets but this widget was left there.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frank

    (@bueltge)

    You can remove it via options of the Dashboard, custom code is not necessary.

    However is you will remove them for each user, use the hook wp_dashboard_setup and function remove_meta_box to unset this dashboard widget. See the examples of core.

    
         add_action( 'wp_dashboard_setup', 'fb_remove_dashboard_widgets' );
         function fb_remove_dashboard_widgets() {
        
         	remove_meta_box( 'multilingualpress-dashboard-widget', 'dashboard', 'side' );
         	// use 'dashboard-network' as the second parameter to remove widgets from a network dashboard.
         }
    

    Hello,

    Thank you very much for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove the dashboard widget?’ is closed to new replies.