<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									how to hide ‘Howdy’ with WP 6.6.1 anymore - Wordpress Website				            </title>
            <link>https://ankitsudhera.com/forum/wordpress-website/how-to-hide-howdy-with-wp-6-6-1-anymore/</link>
            <description>Ankit Sudhera Portfolio Website Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 18 Aug 2026 11:12:13 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>how to hide ‘Howdy’ with WP 6.6.1 anymore</title>
                        <link>https://ankitsudhera.com/forum/wordpress-website/how-to-hide-howdy-with-wp-6-6-1-anymore/#post-13</link>
                        <pubDate>Thu, 01 Aug 2024 06:54:34 +0000</pubDate>
                        <description><![CDATA[Please see the below 2 scripts to remove the howdy in Wordpress, you can use any 1:
Solution 1:
add_filter( &#039;admin_bar_menu&#039;, &#039;replace_wordpress_howdy&#039;, PHP_INT_MAX - 100);
function repla...]]></description>
                        <content:encoded><![CDATA[<p>Please see the below 2 scripts to remove the howdy in Wordpress, you can use any 1:</p>
<p><strong>Solution 1:</strong></p>
<pre contenteditable="false">add_filter( 'admin_bar_menu', 'replace_wordpress_howdy', PHP_INT_MAX - 100);
function replace_wordpress_howdy( $wp_admin_bar ) {
	$my_account = $wp_admin_bar-&gt;get_node('my-account');
	$wp_admin_bar-&gt;add_node( array(
	'id' =&gt; 'my-account',
	'title' =&gt; substr($my_account-&gt;title, strpos($my_account-&gt;title, '&lt;span class="display-name"&gt;')),
	));
}</pre>
<p><strong>Solution 2:</strong></p>
<pre contenteditable="false">function pac_da_custom_admin_bar_user_name() {
    global $wp_admin_bar;
    // Define the ID of the node representing the "My Account" section in the admin bar.
    $node_id = 'my-account';
    // Check if the specified node exists in the admin bar.
    if ($wp_admin_bar-&gt;get_node($node_id)) {
        // Get the current title of the "My Account" section.
        $current_title = $wp_admin_bar-&gt;get_node($node_id)-&gt;title;
        // Split the current title into an array based on the comma and space separator.
        $newTitle = explode(", ", $current_title);
        // Update the "My Account" section title with the second part of the split title if available, 
        // otherwise keep the current title.
        $wp_admin_bar-&gt;add_node(array(
            'id' =&gt; $node_id,
            'title' =&gt; isset($newTitle) &amp;&amp; isset($newTitle) ? $newTitle : $current_title,
        ));
    }
}
// Hook the custom admin bar user name function to run before the admin bar is rendered.
add_action('wp_before_admin_bar_render', 'pac_da_custom_admin_bar_user_name');</pre>]]></content:encoded>
						                            <category domain="https://ankitsudhera.com/forum/wordpress-website/">Wordpress Website</category>                        <dc:creator>ankitbnl406</dc:creator>
                        <guid isPermaLink="true">https://ankitsudhera.com/forum/wordpress-website/how-to-hide-howdy-with-wp-6-6-1-anymore/#post-13</guid>
                    </item>
							        </channel>
        </rss>
		