auto-patch 638-dev-dev01-2024-05-14T20_44_36

This commit is contained in:
root
2024-05-14 20:44:36 +00:00
parent a941559057
commit 5dbb0b284e
1812 changed files with 29671 additions and 14588 deletions

View File

@@ -159,6 +159,11 @@ function wc_get_webhook_statuses() {
* @return bool
*/
function wc_load_webhooks( $status = '', $limit = null ) {
// short-circuit if webhooks should not be loaded at all.
if ( ! is_null( $limit ) && $limit <= 0 ) {
return false;
}
$data_store = WC_Data_Store::load( 'webhook' );
$webhooks = $data_store->get_webhooks_ids( $status );
$loaded = 0;