WooCommerce doesn’t provide any such hook to display User ID on the dashbaord.
But you can add it by overwriting dashboard template into your theme file. You can view in brief of how to overwrite templates from below WooCommerce reference link.
https://docs.woocommerce.com/document/template-structure/
You need to copy template dashboard.php file from WooCommerce plugin template to woocommerce/myaccount/ folder in your theme.
You can use a code to display User ID anywhere on the dashboard page.
<?php echo esc_html( $current_user->ID ); ?>
Related Posts:
- Sending the reset password link programatically
- How to change upload directory in wp_handle_upload
- Only show div on homepage/blog index in wordpress/php
- Calculate percentage of post by category
- file_exists() acting weird
- the_title() & the_content() are retrieving Post details inside a Page, after calling a shortcode
- register_rest_route regex option for base64 or alternate
- PHP syntax error when using wpdb update?
- Select dropdown not showing selected value php
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- Customized title tag for each page in pagination?
- Can is_page() be combined with a switch control structure?
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- Run a filter when a walker runs
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- have_posts() execution failure
- WordPress with php 5.5 and zend opcache
- Can’t search posts using WP_QUERY inside AJAX Function
- Woocommerce add to cart quantity buttons with AJAX
- How can I use wp_query to show all product data using just the products ID?
- Display fields as values in array from external SQL DB
- my posts are saved as drafts
- User’s total comment count excluding comments on their own posts
- How can I remove a function that has been added to wordpress with add_filter?
- Create a range slider to change font-size with different screens sizes in wordpress customizer api
- Ajax load more posts with multiple tax query
- Ajax call not working
- do search in two site and show the result in first site
- Are there security or other issues with changing PHP time limit and max input vars?
- How can I pass a custom/dynamic product to the Woocommerce cart?
- How to get post’s current parent term ID?
- Adding Taxonomy Image to taxonomy loop [closed]
- Irregular TTFB and server wait time response
- Two menus show up
- How to determine if the sidebar is empty? Or not active?
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- How to create pagination for users list using custom array?
- WordPress member notification
- Unset session variable on page reload / setup but exclude AJAX
- get_posts works in the page template but not in a shortcode
- Create page with custom php script and fetched data
- How to show an entire post content and not also the excerpt?
- Strip Paragraph Tag
- WordPress shortcode returns the data before
- One account with multiple logins
- Getting different user data depending on where I use variable
- How can get all users by current user meta?
- Sort posts in a specific way
- How to hide post in WordPress
- Only show posts from the last trailing 12 months
- `update_post_meta` not working anymore
- Custom pagination (Previous / Next)
- using wp enqueue style to create a CSS file specifically for a page template
- Getting the slug into a variable, how to echo that variable
- The user can only see their own profile
- Hide a div when a custom field is empty
- Post meta select input, if statement
- Fatal Error wp-settings.php on line 119
- what does $options = get_option(‘test_theme’); do?
- Set document title through shortcode plugin
- Adding a custom meta field with default NULL value which is not selectable
- WordPress url By country code?
- How to change basename url for wp-admin?
- Prevent header and footer from loading on specific pages with template or plugin
- Get taxonomy terms that share a common object property
- My Custom Post Type AJAX Query is Returning no posts – why?
- Styling a category link
- WordPress all php BUT index.php downloads instead of loads
- Don’t update modified post date when user add a product review or comment?
- Mysterious letters appearing at the top of a few pages
- Trouble matching strings (titles) using wp_query
- Current WordPress Page Title as Search Parameter into A Tag
- Limit the number of characters/words in an excerpt for a related posts section
- Yoast Breadcrumbs Inject Multiple Levels
- Maximum file Upload
- How to give custom roles the capability to edit one Menu instead of every Menu
- Unzip_file causing Media file upload error
- Primary navigation menu with timed items from custom post type
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- Different Logo for Different Pages
- WooCommerce – Add Shipping class below each product in Shopping Cart page
- Escaping a Single Quote in str_replace for Nav Function
- Use fetch_feed(); Totally Outside of WordPress?
- SQL Query Search page
- widget: input the px value from user and use it as inline style in widget function
- Create a dynamic buddupress tab
- Would it be possible to route WordPress Through an MVC Application
- Setting pages for posts
- Problems with plugin that fetches data from database with ajax
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- When I use rewind_post() it shows menu items in my loop
- How to post data to a word press site in case of a mobile app
- Customise Author Page?
- How to create categories out of a list of words?
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- Is there a way of displaying related posts from lowest hyrachical order (lowest child category to parent category)
- Difference between php memory limit and wp memory limit?
- why is kses removing semicolon from inline style?
- Pull latest Youtube Video from json url and make new post
- PHP $_SESSION array – only showing current index