Hi I have been searching for how to add items or custom HTML to the main dashboard landing page of the "my account" section of WooCommerce but cant find it. I am adding this in my child theme and all I can find through searches is how to directly edit the woocommerce_account_content
. Since I want to do this out of my child theme should I user a filter or a hook?
I have tried this:
// define the woocommerce_account_content callback
function action_woocommerce_account_content( ) {
// code here,
};
// add the action
add_action( 'woocommerce_account_content', 'action_woocommerce_account_content', 10, 0 );
But it didnt work when I simply added an echo "hello" as a test. What needs to be changed in order to add custom content to this section?