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.

Method of the class: WC_Webhook{}

Hooks from the method

Return

String. status

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->get_status( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

Changelog

Since 2.2.0 Introduced.

WC_Webhook::get_status() code WC 9.4.2

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