My Custom Functions

Add content to my account WooCommerce only

This is how we put custom content like shortcode, html coding and many more in Woocommerce my account under hello (username) only. Use this code with My Custom Functions by Space X-Chimp WordPress Plugins.

// Add new posts at Dashboard

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

That’s it! Good luck.

Leave a Reply

Your email address will not be published. Required fields are marked *