Welcome Prefix

function replace_prefix( $wp_admin_bar ) {
 $newtitle = str_replace( 'Hi,', 'Logged in as', $my_account->title );
 $wp_admin_bar->add_node( array(
 'id' => 'my-account',
 'title' => $newtitle,
 ) );
 add_filter( 'admin_bar_menu', 'replace_prefix',25 );

It’s the little things that make me happy. Like controlling the WordPress prefix to the username in the admin bar. Here from a simple “Hi” to a “Logged in as” notification.

I’m on it…

*I actually wrote this a year ago, but who wants to admit to leaving it a year between blog posts? So I changed the published date. I’m still mostly a tub of lard, and still hoping to work on it…*

Here we go… #SBATOL (Stop Being A Tub Of Lard) day one. I know it’s not an original topic for a blog starting point, but I don’t really care. I may get more focused and work based in my thinking as I start writing again, I might not.

But for now #SBATOL day one… things I’ve avoided so far:

  1. The biscuits in the middle of the office
  2. Popping to the shop at lunch time
  3. Saying “yes please” when other popped to the shop at lunch time
  4. Chocolate on the way to work.

Things still to achieve today:

  1. Actually run home
  2. Don’t suggest cake tonight.