woocommerce_before_account_customer_stock_notifications
Fires before the back in stock notifications table is rendered on My Account.
Использование
add_action( 'woocommerce_before_account_customer_stock_notifications', 'wp_kama_woocommerce_before_account_customer_stock_notifications_action' );
/**
* Function for `woocommerce_before_account_customer_stock_notifications` action-hook.
*
* @param bool $has_items Whether there are any notifications to render.
*
* @return void
*/
function wp_kama_woocommerce_before_account_customer_stock_notifications_action( $has_items ){
// action...
}
- $has_items(true|false)
- Whether there are any notifications to render.
Список изменений
| С версии 11.2.0 | Введена. |
Где вызывается хук
woocommerce_before_account_customer_stock_notifications
woocommerce/templates/myaccount/stock-notifications.php 90
do_action( 'woocommerce_before_account_customer_stock_notifications', $has_items );