woocommerce_after_account_customer_stock_notifications
Fires after the back in stock notifications table is rendered on My Account.
Usage
add_action( 'woocommerce_after_account_customer_stock_notifications', 'wp_kama_woocommerce_after_account_customer_stock_notifications_action' );
/**
* Function for `woocommerce_after_account_customer_stock_notifications` action-hook.
*
* @param bool $has_items Whether there were any notifications rendered.
*
* @return void
*/
function wp_kama_woocommerce_after_account_customer_stock_notifications_action( $has_items ){
// action...
}
- $has_items(true|false)
- Whether there were any notifications rendered.
Changelog
| Since 11.2.0 | Introduced. |
Where the hook is called
woocommerce_after_account_customer_stock_notifications
woocommerce/templates/myaccount/stock-notifications.php 229
do_action( 'woocommerce_after_account_customer_stock_notifications', $has_items );