WC_Legacy_Webhook::update_status()publicWC 2.2.0

Deprecated from version 3.2.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Update the webhook status.

Method of the class: WC_Legacy_Webhook{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Legacy_Webhook = new WC_Legacy_Webhook();
$WC_Legacy_Webhook->update_status( $status );
$status(string) (required)
Status to set.

Changelog

Since 2.2.0 Introduced.
Deprecated since 3.2.0

WC_Legacy_Webhook::update_status() code WC 8.6.1

public function update_status( $status ) {
	wc_deprecated_function( 'WC_Webhook::update_status', '3.2', 'WC_Webhook::set_status' );

	$this->set_status( $status );
	$this->save();
}