WC_Webhook::set_status( string $status )

Set status.


Description Description


Parameters Parameters

$status

(Required) Status.


Top ↑

Source Source

File: includes/class-wc-webhook.php

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.