woocommerce_store_api_rate_limit_exceeded action-hookWC 8.9.0

Fires when the rate limit is exceeded.

Usage

add_action( 'woocommerce_store_api_rate_limit_exceeded', 'wp_kama_woocommerce_store_api_rate_limit_exceeded_action' );

/**
 * Function for `woocommerce_store_api_rate_limit_exceeded` action-hook.
 * 
 * @param string $ip_address The IP address of the request.
 *
 * @return void
 */
function wp_kama_woocommerce_store_api_rate_limit_exceeded_action( $ip_address ){

	// action...
}
$ip_address(string)
The IP address of the request.

Changelog

Since 8.9.0 Introduced.

Where the hook is called

Authentication::apply_rate_limiting()
woocommerce_store_api_rate_limit_exceeded
woocommerce/src/StoreApi/Authentication.php 179
do_action( 'woocommerce_store_api_rate_limit_exceeded', $ip_address );

Where the hook is used in WooCommerce

Usage not found.