Is there a way to return the number that appears in the little red bubble next to “plugins” when some of them need an update ?
I’m using WordPress 3.0.5
Is there a way to return the number that appears in the little red bubble next to “plugins” when some of them need an update ?
I’m using WordPress 3.0.5
You must be logged in to post a comment.
There’s a routine in
wp-admin/includes/update.php
line 155 (in WP 3.0.5) calledget_plugin_updates()
. It returns an array of plugins with update’s available.count(get_plugin_update())
should do it for you.