Only load active webhooks on each request
To avoid slowing down page loads on sites with a large number of disabled or paused webhooks, which do not need to be loaded or enqueued.
This commit is contained in:
parent
f86b738db3
commit
e7a5a2ab2f
|
@ -644,7 +644,7 @@ final class WooCommerce {
|
|||
return;
|
||||
}
|
||||
|
||||
wc_load_webhooks();
|
||||
wc_load_webhooks( 'active' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue