WordPress action hook

woocommerce_account_content

Defined by WooCommerce and fired by 20 plugins in total, running on 7M+ sites between them.

“My Account content.”

How to use woocommerce_account_content

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_account_content', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

20 plugins that fire woocommerce_account_content

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_account_content' ) templates/myaccount/my-account.php:34
  2. SysBasics Customize My Account for WooCommerce icon SysBasics Customize My Account for WooCommerce7,000+ installs do_action( 'woocommerce_account_content' ) react-myaccount/react-myaccount.php:149
  3. Youzify icon Youzify5,000+ installs do_action( 'woocommerce_account_content' ) includes/public/templates/members/single/woocommerce.php:64
  4. BuddyPress Integration for WooCommerce icon BuddyPress Integration for WooCommerce700+ installs do_action( 'woocommerce_account_content' ) templates/shop/member/bb/my-account.php:52
  5. ShopPress icon ShopPress600+ installs do_action( 'woocommerce_account_content' ) public/templates/my-account/my-account.php:46
  6. StoreBuild icon StoreBuild400+ installs do_action( 'woocommerce_account_content' ) public/woocommerce/myaccount/my-account.php:38
  7. Noah Shop Builder for WooCommerce icon Noah Shop Builder for WooCommerce300+ installs do_action( 'woocommerce_account_content' ) includes/Blocks/AccountBlocks.php:113
  8. Vertex Addons for Elementor icon Vertex Addons for Elementor200+ installs do_action( 'woocommerce_account_content' ) app/Widgets/Woo/MyAccount.php:683
  9. Shopready icon Shopready100+ installs do_action( 'woocommerce_account_content' ) src/extension/templates/presets/myaccount/my-account-one.php:40
  10. My Account Page Lite for Divi icon My Account Page Lite for Divi100+ installs do_action( 'woocommerce_account_content' ) templates/frontend/account.php:14
  11. ShopMaker icon ShopMaker90+ installs do_action( 'woocommerce_account_content' ) classes/widgets/sm-myaccount-my-account.php:681
  12. Gou Manage My Account Menu icon Gou Manage My Account Menu70+ installs do_action( 'woocommerce_account_content' ) templates/my-account.php:45
  13. WTC: Sözleşmeler, Kargo, SMS, İade, Form, OTP (SMS Doğrulama), Puan, Kupon Yönetimi icon WTC: Sözleşmeler, Kargo, SMS, İade, Form, OTP (SMS Doğrulama), Puan, Kupon Yönetimi20+ installs do_action( 'woocommerce_account_content' ) modules/dashboard/frontend/DashboardHandler.php:64
  14. User Avatar For Woocommerce icon User Avatar For Woocommerce20+ installs do_action( 'woocommerce_account_content' ) user-avatar-for-woocommerce.php:767
  15. Dashboard for Woo icon Dashboard for Woo10+ installs do_action( 'woocommerce_account_content' ) includes/class-webangonwd-ajax.php:59
  16. LH Buddypress Woo icon LH Buddypress Woo10+ installs do_action( 'woocommerce_account_content' ) lh-buddypress-woo.php:288
  17. Experto Dashboard for WooCommerce icon Experto Dashboard for WooCommerce10+ installs do_action( 'woocommerce_account_content' ) templates/woocommerce/myaccount/my-account.php:80
  18. AZDev Account Skin for WooCommerce icon AZDev Account Skin for WooCommerceFewer than 10 installs do_action( 'woocommerce_account_content' ) templates/myaccount/my-account.php:42
  19. Preloader Studio icon Preloader StudioFewer than 10 installs do_action( 'woocommerce_account_content' ) includes/class-preloader-studio-account-dashboard.php:123
  20. Single Page Shopping icon Single Page ShoppingFewer than 10 installs do_action( 'woocommerce_account_content' ) templates/content-only-page/awcs-content-only-page.php:52

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.