• Resolved tille

    (@tille)


    Hi,

    unfortunately it seems the “Howdy” is back with the latest WordPress update 6.6.1.

    I hope you can hep with that?

    Thank you! Cheers!

Viewing 11 replies - 1 through 11 (of 11 total)
  • hbacharach

    (@hbacharach)

    Same result as @tille. Adding function to functions.php, doesn’t work, nor does solution in WPCode plug-in.

    I found a solution, use below script:

    add_filter( ‘admin_bar_menu’, ‘replace_wordpress_howdy’, PHP_INT_MAX – 100);
    function replace_wordpress_howdy( $wp_admin_bar ) {
    $my_account = $wp_admin_bar->get_node(‘my-account’);
    $wp_admin_bar->add_node( array(
    ‘id’ => ‘my-account’,
    ‘title’ => substr($my_account->title, strpos($my_account->title, ”)),
    ));
    }

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello,

    Thank you for bringing this issue to our attention. We will deploy an update as soon as possible.

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello,

    We have just updated the plugin. Please let us know how it works for you.

    Still have this issue after the update

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello,

    I just tested from 6.1 – 6.6.1 and its working fine on my end. https://d.pr/i/QfgDTi

    Thread Starter tille

    (@tille)

    Thank you for resolving this! Now the only problem remains that it only seems to work when the profile language or admin language is default / English. I have several pages where the admin language is German – and on those pages there is still the German translation “Willkommen” next to the profile name. I hope there is a way to solve this? Thank you very much! Cheers! t

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello,

    We plan to support this feature in our next release. In the meantime, you can test it using the fixed version available here(https://d.pr/f/mZXrQe).

    None of these suggestions so far have worked for me, though I’ve managed to sort it out based on that proposed by @ankitbnl406

    It seems that WordPress has finally realised their 19th century cowboy greeting is not favoured this side of the Atlantic. Having managed to replace it for some time, mine started greeting me with the almost as naff “Hi, {username}” as from WP 6.6.1 – I assume this is because I have the British (dare I say ‘proper’) English dictionary installed. (Though I note the header on this page, when logged in, still greets me with “Howdy”.) The following simple code in functions.php does exactly what I want – no need for a plugin:


    function replace_howdy( $wp_admin_bar ) {
    $my_account = $wp_admin_bar->get_node('my-account');
    $title = $my_account->title;
    /* Look for a comma separator in $title: if there isn't one, don't do anything, but if there is, split the greeting into two and discard the left half (ie. the comma and all that precedes it). Then prepend the remainder with your chosen greeting, eg. in French it could be 'Bonjour'. This will future-proof it in case WP wants to change the greeting again (though if the comma gets removed, we'll have to think again…)
    If you want to keep the comma, use $x instead of $x + 1 below. */
    $x = strpos ($title, ',');
    if ($x) {
    $newtitle = 'Hello' . substr($title, $x + 1 );
    $wp_admin_bar->add_node( array(
    'id' => 'my-account',
    'title' => $newtitle,
    ) );
    }
    }
    // Set the priority to 10000 or greater to stop PHP errors:
    add_filter( 'admin_bar_menu', 'replace_howdy', 10000 );

    • This reply was modified 2 months, 4 weeks ago by stevegs.

    Still the same for me here same on a few sites.

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello @ashbyvagg,

    We are planning to release the fix soon,?you can test it using the fixed version available?here(https://d.pr/f/mZXrQe).

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.