Add nd remove admin bubble notification
-
Hello everyone,
i’m developping my custom plugin and i want to add bubble notification.
When my field called “Option 1” is empty i want to add a bubble on my menu.
When it’s not empty i want hide the bubble.
I thinked about use an add_action(admin_menu) hook and then create a function where :
add_menu_page("My plugin" , printf(__('Plugin %s'), "<span class='update-plugins count-$count' title='Myplugin><span class='update-count'>" . number_format_i18n($count) . "</span></span>"),'manage_options')
With ?ount receiving if my parameter is empty or not
But it doesn’t working when the field is not empty.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add nd remove admin bubble notification’ is closed to new replies.