WordPress.org

Forums

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

  1. Sofusalbertsen
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic