WooCommerce::load_webhooks()
Load & enqueue active webhooks.
Method of the class: WooCommerce{}
Hooks from the method
Return
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->load_webhooks();
Changelog
Since 2.2 | Introduced. |
WooCommerce::load_webhooks() WooCommerce::load webhooks code WC 9.2.3
private function load_webhooks() { if ( ! is_blog_installed() ) { return; } /** * Hook: woocommerce_load_webhooks_limit. * * @since 3.6.0 * @param int $limit Used to limit how many webhooks are loaded. Default: no limit. */ $limit = apply_filters( 'woocommerce_load_webhooks_limit', null ); wc_load_webhooks( 'active', $limit ); }