'; } /** * Prints the beginning of wrapper element after all notices. */ public function finish_output_capturing() { echo ''; } /** * Adds menu item showing number of notifications. * * @param \WP_Admin_Bar $admin_bar WordPress admin bar. */ public function add_item_in_admin_bar( $admin_bar ) { $admin_bar->add_menu( [ 'id' => 'anm_notification_count', 'title' => __('No admin notices', 'admin-notices-manager'), 'href' => '#', 'parent' => 'top-secondary', ] ); } }