woocommerce_account_(key)_endpoint хук-событиеWC 1.0

Использование

add_action( 'woocommerce_account_(key)_endpoint', 'wp_kama_woocommerce_account_key_endpoint_action' );

/**
 * Function for `woocommerce_account_(key)_endpoint` action-hook.
 * 
 * @param  $value 
 *
 * @return void
 */
function wp_kama_woocommerce_account_key_endpoint_action( $value ){

	// action...
}
$value
-

Где вызывается хук

woocommerce_account_content()
woocommerce_account_(key)_endpoint
WC_Shortcode_My_Account::output()
woocommerce_account_(key)_endpoint
woocommerce/includes/wc-template-functions.php 3257
do_action( 'woocommerce_account_' . $key . '_endpoint', $value );
woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php 91
do_action( 'woocommerce_account_' . $key . '_endpoint', $value );

Где используется хук в WooCommerce

woocommerce/includes/wc-template-hooks.php 291
add_action( 'woocommerce_account_orders_endpoint', 'woocommerce_account_orders' );
woocommerce/includes/wc-template-hooks.php 292
add_action( 'woocommerce_account_view-order_endpoint', 'woocommerce_account_view_order' );
woocommerce/includes/wc-template-hooks.php 293
add_action( 'woocommerce_account_downloads_endpoint', 'woocommerce_account_downloads' );
woocommerce/includes/wc-template-hooks.php 294
add_action( 'woocommerce_account_edit-address_endpoint', 'woocommerce_account_edit_address' );
woocommerce/includes/wc-template-hooks.php 295
add_action( 'woocommerce_account_payment-methods_endpoint', 'woocommerce_account_payment_methods' );
woocommerce/includes/wc-template-hooks.php 296
add_action( 'woocommerce_account_add-payment-method_endpoint', 'woocommerce_account_add_payment_method' );
woocommerce/includes/wc-template-hooks.php 297
add_action( 'woocommerce_account_edit-account_endpoint', 'woocommerce_account_edit_account' );