WC_Webhook::enqueue()
Enqueue the hooks associated with the webhook.
{} Это метод класса: WC_Webhook{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WC_Webhook = new WC_Webhook(); $WC_Webhook->enqueue();
Список изменений
С версии 2.2.0 | Введена. |
Код WC_Webhook::enqueue() WC Webhook::enqueue WC 6.8.0
public function enqueue() { $hooks = $this->get_hooks(); $url = $this->get_delivery_url(); if ( is_array( $hooks ) && ! empty( $url ) ) { foreach ( $hooks as $hook ) { add_action( $hook, array( $this, 'process' ) ); } } }