WordPress.org

Ready to get started?Download WordPress

Forums

How to add a username to code (1 post)

  1. HorrorUK
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.