WC_Webhook::set_status
Set status.
Method of the class: WC_Webhook{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Webhook = new WC_Webhook(); $WC_Webhook->set_status( $status );
- $status(string) (required)
- Status.
Changelog
| Since 3.2.0 | Introduced. |
WC_Webhook::set_status() WC Webhook::set status code WC 10.5.0
public function set_status( $status ) {
if ( ! array_key_exists( $status, wc_get_webhook_statuses() ) ) {
$status = 'disabled';
}
$this->set_prop( 'status', $status );
}