Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Questions about updated cleanup.php file

Home / Forums / Virtue Theme / Questions about updated cleanup.php file

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
October 30, 2014 at 9:43 am

I noticed you removed this code from the new cleanup.php file. I like that it was there. Are you stripping this code somewhere else?

/**
* Remove unnecessary dashboard widgets
*
* @link
*/
function kadence_remove_dashboard_widgets() {
remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');
remove_meta_box('dashboard_plugins', 'dashboard', 'normal');
remove_meta_box('dashboard_primary', 'dashboard', 'normal');
remove_meta_box('dashboard_secondary', 'dashboard', 'normal');
}
add_action('admin_init', 'kadence_remove_dashboard_widgets');

Thanks,
Bob

  • The forum ‘Virtue Theme’ is closed to new topics and replies.