Hi Arnold,
the id of the widget is “dashboard_glnt” so your unset command will be
unset($normal[‘dashboard_glnt’]);
I would recommend you to add high priority value for your add_action call to make sure your code is executed last. Like so:
add_action(‘wp_dashboard_setup’, ‘clear_dash’, 100 );
I hope this helps.
In the next release the widget won’t be shown for the non-administrator users. Thanks for pointing out the problem.
Regards,
Alex L.
Hi Alex,
Thank you for quick answer but after when function was added next error was appeared:
Fatal error: Cannot redeclare clear_dash()…
It not a problem if you will make corrections in next release as you said.
Regards,
Arnold