woocommerce_before_account_customer_stock_notifications_pending
Fires before the pending (awaiting confirmation) stock notifications table is rendered on My Account.
Usage
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.
Changelog
| Since 11.2.0 | Introduced. |
Where the hook is called
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 );