woocommerce_after_account_customer_stock_notifications_pending │ хук-событие │ WC 11.2.0

Fires after the pending (awaiting confirmation) stock notifications table is rendered on My Account.

Использование

add_action( 'woocommerce_after_account_customer_stock_notifications_pending', 'wp_kama_woocommerce_after_account_customer_stock_notifications_pending_action' );

/**
 * Function for `woocommerce_after_account_customer_stock_notifications_pending` action-hook.
 * 
 * @param bool $has_pending Whether there were any pending notifications rendered.
 *
 * @return void
 */
function wp_kama_woocommerce_after_account_customer_stock_notifications_pending_action( $has_pending ){
	// action...
}
$has_pending(true|false)
Whether there were any pending notifications rendered.

Список изменений

С версии 11.2.0 Введена.

Где вызывается хук

В файле: /templates/myaccount/stock-notifications.php
woocommerce_after_account_customer_stock_notifications_pending
woocommerce/templates/myaccount/stock-notifications.php 185
do_action( 'woocommerce_after_account_customer_stock_notifications_pending', $has_pending );

Где используется хук в WooCommerce

Использование не найдено.