woocommerce_load_webhooks_limit
Hook: woocommerce_load_webhooks_limit.
Usage
add_filter( 'woocommerce_load_webhooks_limit', 'wp_kama_woocommerce_load_webhooks_limit_filter' ); /** * Function for `woocommerce_load_webhooks_limit` filter-hook. * * @param int $limit Used to limit how many webhooks are loaded. * * @return int */ function wp_kama_woocommerce_load_webhooks_limit_filter( $limit ){ // filter... return $limit; }
- $limit(int)
- Used to limit how many webhooks are loaded.
Default: no limit
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
woocommerce_load_webhooks_limit
woocommerce/includes/class-woocommerce.php 1015
$limit = apply_filters( 'woocommerce_load_webhooks_limit', null );