woocommerce_account_(key)_endpoint
Использование
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_(key)_endpoint
woocommerce/includes/wc-template-functions.php 3269
do_action( 'woocommerce_account_' . $key . '_endpoint', $value );
Где используется хук в WooCommerce
woocommerce/includes/wc-template-hooks.php 298
add_action( 'woocommerce_account_orders_endpoint', 'woocommerce_account_orders' );
woocommerce/includes/wc-template-hooks.php 299
add_action( 'woocommerce_account_view-order_endpoint', 'woocommerce_account_view_order' );
woocommerce/includes/wc-template-hooks.php 300
add_action( 'woocommerce_account_downloads_endpoint', 'woocommerce_account_downloads' );
woocommerce/includes/wc-template-hooks.php 301
add_action( 'woocommerce_account_edit-address_endpoint', 'woocommerce_account_edit_address' );
woocommerce/includes/wc-template-hooks.php 302
add_action( 'woocommerce_account_payment-methods_endpoint', 'woocommerce_account_payment_methods' );
woocommerce/includes/wc-template-hooks.php 303
add_action( 'woocommerce_account_add-payment-method_endpoint', 'woocommerce_account_add_payment_method' );
woocommerce/includes/wc-template-hooks.php 304
add_action( 'woocommerce_account_edit-account_endpoint', 'woocommerce_account_edit_account' );