wc_deliver_webhook_async()
Wrapper function to execute the woocommerce_deliver_webhook_async cron. hook, see WC_Webhook::process().
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wc_deliver_webhook_async( $webhook_id, $arg );
- $webhook_id(int) (обязательный)
- Webhook ID to deliver.
- $arg(разное) (обязательный)
- Hook argument.
Список изменений
С версии 2.2.0 | Введена. |
Код wc_deliver_webhook_async() wc deliver webhook async WC 9.8.2
function wc_deliver_webhook_async( $webhook_id, $arg ) { $webhook = new WC_Webhook( $webhook_id ); if ( 0 === $webhook->get_id() ) { return; } $webhook->deliver( $arg ); }