woocommerce_before_account_orders
Использование
add_action( 'woocommerce_before_account_orders', 'wp_kama_woocommerce_before_account_orders_action' ); /** * Function for `woocommerce_before_account_orders` action-hook. * * @param $has_orders * * @return void */ function wp_kama_woocommerce_before_account_orders_action( $has_orders ){ // action... }
- $has_orders
- -
Где вызывается хук
В файле: /templates/myaccount/orders.php
woocommerce_before_account_orders
woocommerce/templates/myaccount/orders.php 22
do_action( 'woocommerce_before_account_orders', $has_orders ); ?>