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:
Brent Shepherd 2018-09-24 13:28:39 +10:00
parent f86b738db3
commit e7a5a2ab2f
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ final class WooCommerce {
return;
}
wc_load_webhooks();
wc_load_webhooks( 'active' );
}
/**