[FW2.0] Remove Yit Dashboard Widget

Add the following snippet at the end of the file **functions.php** located inside your theme

 

 

function yit_remove_dashboard_widgets() {
    global $wp_meta_boxes;

    unset( $wp_meta_boxes['dashboard']['side']['core']['yit_dashboard_products_news'] );
    unset( $wp_meta_boxes['dashboard']['side']['core']['yit_dashboard_blog_news'] );
}
add_action( 'wp_dashboard_setup', 'yit_remove_dashboard_widgets', 11 );

 

Tested with: Mindig, Regency, Bishop

but should work even with older themes.

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk