WordPress at Your Fingertips
function is not described

WooCommerce::load_webhooks() private WC 2.2

Load & enqueue active webhooks.

{} It's a method of the class: WooCommerce{}

Hooks from the method
Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->load_webhooks();

Changelog

Since 2.2 Introduced.

Code of WooCommerce::load_webhooks() WC 5.7.1

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 );
}