WordPress at Your Fingertips
function is not described

WC_Webhook::set_status() public WC 3.2.0

Set status.

{} It's a method of the class: WC_Webhook{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->set_status( $status );
$status(string) (required)
Status.

Changelog

Since 3.2.0 Introduced.

Code of WC_Webhook::set_status() WC 5.9.0

public function set_status( $status ) {
	if ( ! array_key_exists( $status, wc_get_webhook_statuses() ) ) {
		$status = 'disabled';
	}

	$this->set_prop( 'status', $status );
}