Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_dashboard_widgets() {
- global $wp_meta_boxes;
- print_r($wp_meta_boxes['dashboard']);
- // Find the widget you want to remove and unset() it
- }
- function your_admin_init() {
- add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );
- }
- add_action("admin_init", "your_admin_init");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement