WordPress at Your Fingertips
function is not described

WC_Legacy_Webhook::update_status() public WC 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.

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

No Hooks.


null. Nothing.


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


Since 2.2.0 Introduced.
Deprecated 3.2.0

Code of WC_Legacy_Webhook::update_status() WC 5.6.0

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

	$this->set_status( $status );