You can use wordpress nodes to customize profile menu.
Add this in functions.php
add_action( 'admin_bar_menu', 'remove_my_account', 999 );
function remove_my_account( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'my-account' );
}
add_action( 'admin_bar_menu', 'add_logout', 999 );
function add_logout( $wp_admin_bar ) {
$args = array(
'id' => 'logout', // id of the existing child node (New > Post)
'title' => 'Logout', // alter the title of existing node
'parent' => 'top-secondary', // set parent
);
$wp_admin_bar->add_node( $args );
}
Related Posts:
- How to override admin-bar style
- How to fix a theme with page.php Default Template that accidentally deleted?
- How to change menu icon which is overriden (i.e. by WooCommerce) [closed]
- Selective Product Category for Carousel
- “options.php” not found
- WP Enqueue Script Error
- us states dropdown function and echo in theme template files
- How to pass a variable from a template page to the child theme functions.php
- Which template file to edit to edit homepage in Mystile [closed]
- My website is generating weired url parameters of paginated pages
- wordpress use single ajax in place of multiple ajax requests in a smarter way
- Add Element as a Filter to the_content
- Remove “Published On” inside wp-admin
- Where do i create my own function in wp-admin
- How to remove comment count column in Posts inside the admin dashboard?
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- I have problems with loading javascripts
- Pass variable from action back to template
- Need print logo without any ID & class
- Not all CSS elements transferring via parent to child?
- unnecessary request call for js and css after calling wp_dequeue_script
- Define PHP variable from a seperate API if statement
- Some questions about how proper add 2 CSS file in a WordPress theme?
- Turn get_posts as string into an array for use in theme admin options
- Best way to handle lack of titles in microblogging
- attachment page template? only show attachments for current post?
- Run a jquery script on on a certain template page
- Filter nav menu items HTML tags and wrap inner text with span
- Sortable column (by numbers) in admin users
- Can’t switch to a child theme using filters template, option_template and option_stylesheet
- Redirect website domain (including all pages) to external URL after Popup message (few seconds)
- error at login page in wordpress
- How to include any template using Shortcode fuction?
- Image loading function not working on archive.php template
- Add a field into a shortcode of an extension
- Getting the teaser text without overriding global variables
- Specify multiple categories for custom post template – FATAL ERROR
- Default Nav Highlight
- Update to functions.php not showing in dashboard
- Add element to widgetpage
- Using functions.php to include code that’s processed inline
- Best way to disable sidebars on posts (only)?
- How to make a new function that includes a template
- How to override this theme function in child theme
- get_template_directory() – references parent theme directory
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- How do I preserve changes to a theme’s functions.php across updates?
- Show admin page, only if function is being used
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Prevent creating multiple image resizes in twentytwelve template
- How to change a specific admin label
- What function actually renders the wp_admin_bar ? How can I call it?
- Simplest Way to Build Custom Archives Page?
- How to change a meta value (of a published post) after X days.?
- Display ACF category image on archive and single template files
- Astra theme – cannot set short product description under the product title (product name)
- Render page with specific id from functions.php
- Block all plug-ins from initiating redirection upon activation?
- How to add custom metakey to shop_order page’s searching function?
- How to require a config file in a template and in function.php?
- the_date() and the_time() functions display actual date an time instead of published date and time
- Load templates, pass arguments, and render output from functions.php
- Changing the HTML of notices in WooCommerce [closed]
- Header menu aligned right on all pages except for single-post page [closed]
- Class parameter in get_avatar args doesn’t get added to output
- Unable to login after registration
- CSS style and app.js not loading
- Insert Modal on user first login
- Setting Up Child Theme To Take Priority
- Shortcode Initialization in a Custom Theme
- DISABLE wordpress upgrade page
- More than one search results page template for two searches on site
- WordPress function with attribute pass to template
- admin-ajax.php & my wp-admin folder url showing in header
- Javascript and Stylesheet in child page
- Newest comments first not working
- Getting back a blank WordPress site following functions code edit
- Retrieve a custom form field modified by a filter
- What is wrong with functions.php? Fills error log with same error
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Function the_content
- Random text changing to weird icons in both admin & front end
- Register a widget area when a theme option has been saved?
- Allow the access over wp-login.php
- Shortcode to output get_header not working
- How does child theme functions.php work with parent theme functions.php? Is it like CSS? [duplicate]
- Additional Sidebar
- How can i hide content if not friend in Buddypress? [closed]
- Add custom css to theme
- Make a PHP file with a function
- Changed functions.php file and now site is blank [closed]
- Creating mixture of shortcodes to use in the visual/text editor
- Adding function to function.php error 505 [closed]
- How to get postId from the argument $block when register_block_type()?
- How to store page-{id}.php templates in custom folder
- How to automatically load Google Fonts on pages only as they’re used?
- Setcookie not setting cookies anywhere except admin
- How to use webpack in WordPress theme? I want some scripts to load in the footer, some in the header and some with script parameters