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