I think what you are asking is changing the text +NEW to ADD Deal.
This code is adjusted like that.
add_action( 'admin_bar_menu', 'change_new_post_name', 999 );
function change_new_post_name ( $wp_admin_bar ) {
//Removing +New
$wp_admin_bar->remove_node( 'new-content' );
//hyperlink for the new link. This can be anything. Currently it's default.
$link = get_bloginfo('url').'/wp-admin/post-new.php';
//Parameters to create a new node
$args = array(
'id' => 'new-content', //re-creating the +New
'title' => 'ADD Deal', //Giving it a different title
'href' => "$link" // Above created link
);
$wp_admin_bar->add_node( $args );
}
Related Posts:
- Add custom column to Users admin panel
- Modal window from within WordPress admin
- How do I remove dashboard access from specific user roles?
- Search posts by ID in admin
- Sort pages in loop by admin’s page attributes order field?
- Edit “thank you for creating with WordPress” in version 3.3.1
- How to save dismissable notice state in WP 4.2?
- Notification that the admin is online
- sort child pages on admin
- Plugin to remove Admin menu items based on user role?
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Disable all https in WordPress
- Get current active wp color scheme
- Cannot login to WordPress Admin with SSL terminated load balancer
- Thickbox hacking – removing fields
- How to fix admin stylesheet muck-up? [closed]
- Turn off admin emails for new user registrations
- Remove admin AND editor from the “change role to” menu in user listing
- Modify CSS via Theme Control Panel
- Adding custom Javascript to the head tag in Admin
- Making Media Library “Alternative Text” Field Required
- Add extra field when admin create user
- custom tabs in media uploader
- Replacing the List table of a Post Type
- How to customize this automatic slug shortener with an overrwrite function
- Hide content-box on specific pages (in admin)?
- changing body background color for custom post type in admin backend
- Adding scripts to admin page in my theme
- How can I place the “Add New Post” contents on a custom page?
- Use latest jQuery in WordPress (admin interface)
- Getting Rid of the WordPress.com Toolbar on Other Sites?
- Admin Notices coding standard issue
- Any way to inherit methods from both my plugin class and WP_List_Class?
- How to notify the admin about something that happened during a cron job
- wp_dropdown_pages() in theme admin page
- How to enable enqueue_script to work with a logged in user?
- I’m receiving requests to change the admin email. How can this be happening?
- How can I load an inline script after the enqueued scripts in admin?
- Set admin body to ltr on a rtl installation
- Restore original WP admin bar after BuddyPress install [closed]
- Remove Admin sidebar link
- front end editing using iFrames, best approach?
- Are there any filters to add additional columns to the list table on edit-comments.php?
- Can I mass change all admin emails for a multisite instance?
- WordPress Frontend Check If Current User Is Administrator
- Instructions for a custom post type
- How do you set up a WordPress blog with multiple authors to allow something like StackExchange’s “community wiki” feature?
- WordPress admin area used to administer other site
- One button on admin page works but not two
- Problems with WP_List_Table and hooks
- Display popup or admin-notice after add new categories
- Add ‘Last Modified’ and Attachments (Yes/No) to WordPress Users Column
- WordPress administrator area access disabled temporarily due to widespread brute force attacks
- Modifying the built-in behavior of ajax tag type-ahead functionality of WordPress
- Why am I timing out when using the Menu Editor?
- How can I merge two authors?
- Why can’t a custom postype be registered with “admin_init” hook?
- Accessing variable from admin panel?
- How to pass multiple parameter in add_action()
- Add term of current custom post type to admin body class using admin_body_class
- WordPress admin toolbar not loading styles after migration
- Changing admin user id for database
- Access for adding subpages but not for pages
- Limiting Admin Backend Search to Title
- Does deleting the table users prevent all logins?
- Include script files for admin submenu page
- Restrict access to admin
- How should I setup the “Users” area to hand over to a client?
- Shows site under construction but comes up after I login to admin
- Wp-Admin FTPS Connection Error unlike Filezilla
- Default scripts added to each admin page
- Dashboard RSS Widget Overhaul
- Settings API – Last two tabs not rendered separate
- Possible to show in media library if images are being used as featured images?
- How To Create WordPress Dashboard Item
- Adding a WordPress Admin Dashboard to my local wordpress site
- cannot access the wordpress dashboard after changing the site url
- Reset WordPress admin users to limit access
- Is it possible to push admin notices to one specific user instead of all users?
- After upgrading to WP 5.1.1 sometimes I need to reauth infinitively
- How to save edited post when submitting form
- Trying to hide a submenu link which is created by Co-authors Plus plugin
- Blank WordPress admin/dashboard (7 updates pending)
- How can I create multiple different admin roles with their own capabilities
- Find out if post was just updated on post edit screen
- Wp-admin page not found following copy of site
- Custom redirection when managing users in admin
- How to retain HTML5 Attributes on Markup
- Why doesn’t the Media Browser use thumbnail sized images?
- Get the selected posts IDs to use in bulk edit AJAX call
- wordpress login loop after install
- Improving this link color picker code
- Change Admin URL
- Change the Author name to a custom field?
- User interfaces living in the Admin “back end” area
- How to remove certain feed from my dashboard in WP admin
- Hiding the media-new.php File URL option via jQuery
- Buddypress send admin notification email when new subscriber registers
- Background image in login showing in admin area
- What Role to assign remote site developer?