WC_Legacy_Webhook::update_status
Deprecated since 3.2.0. It is no longer supported and may 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.
Returns
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() WC Legacy Webhook::update status code WC 10.7.0
public function update_status( $status ) {
wc_deprecated_function( 'WC_Webhook::update_status', '3.2', 'WC_Webhook::set_status' );
$this->set_status( $status );
$this->save();
}