You are currently viewing Woocommerce Hack! Add Content to My Account.

Woocommerce Hack! Add Content to My Account.

This is how you can add your own custom content at Woocommerce My Account on Dashboard only.

First, make sure you use child-theme functions.php or my custom functions plugins by Space X-Chimp & paste these code:

// Add content at My Account Dashboard

add_action( 'woocommerce_account_dashboard', 'xhanxeli_dashboard_addition' );
function xhanxeli_dashboard_addition() {
echo '<p>YOUR CONTENT HERE...</p>';
    
}

You can replace xhanxeli to your own value such as my_dashboard_addition and make sure you changes all the xhanxeli to your new value.

Place your custom content (shortcode, html code etc) after echo ‘

Woocommerce hacks. My Account Dashboard.
Copy & paste the code like this. Save changes! Make sure you turn on the plugin settings.

That’s all!

Share or bookmark this link for future updates.

Han

Web Designer, Web Developer, Digital Marketer, Content Writer & A Blogger. Administrator at Xhanxeli Network Website.
Disclaimer: The opinions expressed on this website; enteries and in the comments section, are not necessarily those of xhanxeli.com, it's advertisers, or anyone else displayed on this website.

This Post Has 2 Comments

  1. era

    skincare set by kak ell x tersenarai dlm list yg awak share..maknanya produk kak ell ni selamat utk digunakn la yea

    1. Eli

      tak tersenarai tak bermaksud selamat.

Leave a Reply