this:
add_action('wp_dashboard_setup', array( $this, 'tidy_dashboard') );
is getting added on the wp
action, which is too late. Hook it to admin_init
or in your constructor.
this:
add_action('wp_dashboard_setup', array( $this, 'tidy_dashboard') );
is getting added on the wp
action, which is too late. Hook it to admin_init
or in your constructor.