WordPress.org

Support

Support » Themes and Templates » How to add a username to code

How to add a username to code

  • Hi,

    I’m trying to add the current user’s username in the code below (where it has XX), but can’t figure out where to add it:

    <?php printf( __( "Hi XX,", 'woocommerce' ), get_option( 'blogname' ) ); ?>

    Any help would be very much appreciated.

    Thanks.

  • The topic ‘How to add a username to code’ is closed to new replies.
Skip to toolbar