So I found a solution to my problem. I just added a span
tag in the add_submenu_page() hook and it work:
add_submenu_page(
# The slug for the parent menu page to which this sub menu belongs
'email-service',
# The text that't rendered in the browser title bar
'Breaking News Email',
# The text to be rendered in the menu
'<span class="breaking-news-toggle">Breaking News Email</span>',
# the capability required to access this menu item
'send_email',
# The slug by which this sub menu is identified
'my-email-service',
# the function used to display the options for this menu's page
array(&$this, 'email_service_form')
);
Related Posts:
- How to filter users on admin users page by custom meta field?
- is it possible to add “extra” table nav to edit-tags.php screens?
- What hook do I use to edit the post statuses option in admin?
- post_mime_types Filter not Working in List Mode
- How to limit the pages displayed for choosing parent page on page attribute’s menu?
- WordPress Rest filter for custom taxonomy gets applied to the admin area
- user_has_cap filter allows edit but will not allow save
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- Why my admin doesn’t work after adding rest_prepare_post filter?
- Add Sortable Column For All Post Types
- How to add ‘total’ value to custom column title on the posts list page
- views_edit-post filter not working (custom post type)
- Filter out comments with certain meta key/s in the admin backend
- Filter pre_get_posts does not modify Mine/All/Pending
- Prevent add_filter being applied to wp-admin pages
- Media upload default title from file name
- Admin post list – adding an option to the date filter dropdown
- How to replace username with email address in users table
- Hide Posts In Back-end/Admin Based On User’s (Pseudo) Privileges Controlled by ACF
- Filter Pages by Custom Field (ACF) in admin area
- Echo string in admin panel footer beside version no
- Filter / add_action to upgrade.php page
- How to filter with dropdown in backend for custom data
- Removing menus from users other than the administrator
- Having wp-admin on different domain
- WordPress: Issue with filtering users using date range
- How do I disable the warning “The backup of this post in your browser is different from the version below”?
- How to add a custom CSS class to core blocks in Gutenberg editor?
- No filter of code on switch from html to visual editor, how?
- How to modify posts_where filter only for the search query
- How to auto-translate custom user roles?
- Adding revision support to WooCommerce product content
- Changing text within the Block Editor
- add_filter for specific pages
- How to add attribute to output with wp_video_shortcode add_filter
- Change default settings used by gallery shortcode
- Please explain me what the do_action does
- How Can I Have A URL Changed Based on the Originating URL?
- Is it possible to Hook/Filters Attachment Creation?
- Add ‘if exists’ to filter
- Why I can’t change the permalink of this page?
- how to remove filter from wordpress shortcode output
- Change email from and display name with a filter action
- Please help me through this example with a filter to understand how they work
- Filter custom post types in archive
- WordPress tag cloud add more links
- wp_insert_post_data filter not working correctly after upgrade to WordPress 5
- Yoast SEO hooks overriding themselves
- Question about how do wordpress filters/actions work
- How to center oEmbedded content
- How to take options from form fields and turn them in to links?
- When to use add_action when registering/enqueuing scripts
- How add a group by to the query used by the media library?
- add_filter(allowed_block_types) -> adding core/paragraph bugs Gutenberg editor
- How to properly modify WP Vary or any existing headers?
- How to remove medium size class in gravity form for input tag?
- Remove or move admin submenus under a new menu
- Custom wp_query time filter on meta_value
- get post id within add_filter()
- add_filter to wp_nav_menu_objects having no impact
- Making Comments, a sub_menu in admin menu
- Trimming a custom field to a length
- Filter content for get_the_content()
- Using add_filter to modify a public function of a class
- How to hide/remove GhostKit component panel in gutenberg block inspector
- WordPress removing slashes from shortcode output
- add after content don’t work
- need correction with a snippet in functions.php [closed]
- conditional search
- output custom Posts on a Page
- Filter “Your latest posts”
- Sql query does not work well
- Hide certain product filters from specific product categories
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- WordPress Gutenberg core/heading block (wp-block-heading)
- Add an attribute to the root from functions.php with add_filter
- Would like to use hook or filters to customize email templates
- Can’t understand apply_filter logic
- Apply pre_get_posts filter in a certain moment (just for a particular block of posts)
- Modify oembed code conditionally
- How to Change the WordPress Locale with the ‘locale’ Filter?
- meta box loop problem with a search filter
- How to set selected attribute on option after filter query?
- Modify Default URL for /wp-includes/js/wp-emoji.js?ver=4.6.1
- List all image sizes still getting disabled sizes
- wp_editor customization
- What problems could happen if I replaced add_filter and add_action with the function calling
- posts_results filter function memory errors
- Adding to an array & passing it through do_action/apply_filters
- Activate short codes for all post queries?
- Save something to global var in add_filter
- Loading a sidebar on an Ajax call
- the_excerpt() does not work with has_excerpt()?
- Wrapping Featured Image on Add/Edit Page in div?
- how to localize the number of wordpress post views?
- How do you disable the verification process of user email changes?
- Modify the third (context) parameter in a filter?
- How to change wp-admin and wp-login urls
- Change password reqts with NO plugin without breaking resetpass link?
- How can I conditionally add the filter option_home?