WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Display username in email (2 posts)

  1. Sofusalbertsen
    Member
    Posted 10 months ago #

    How can i display the username of wordpress in the admin email of an order on my site?
    I tried the following
    <?php $order->user_id?>
    But nothing gets displayed.

    http://wordpress.org/plugins/woocommerce/

  2. Sofusalbertsen
    Member
    Posted 10 months ago #

    It's simple: Just use the normal wordpress codes:
    get_currentuserinfo();
    global $current_user;
    <?php echo $current_user->user_login; ?>

Reply

You must log in to post.

About this Plugin

About this Topic