WC_Webhook::get_status()publicWC 2.2.0

Get the webhook status.

  • 'active' - delivers payload.
  • 'paused' - does not deliver payload, paused by admin.
  • 'disabled' - does not delivery payload, paused automatically due to consecutive failures.

Метод класса: WC_Webhook{}

Хуки из метода

Возвращает

Строку. status

Использование

$WC_Webhook = new WC_Webhook();
$WC_Webhook->get_status( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Список изменений

С версии 2.2.0 Введена.

Код WC_Webhook::get_status() WC 8.7.0

public function get_status( $context = 'view' ) {
	return apply_filters( 'woocommerce_webhook_status', $this->get_prop( 'status', $context ), $this->get_id() );
}