WC_Admin_Webhooks::actions()
Webhooks admin actions.
Description Description
Source Source
File: includes/admin/class-wc-admin-webhooks.php
public function actions() {
if ( $this->is_webhook_settings_page() ) {
// Save.
if ( isset( $_POST['save'] ) && isset( $_POST['webhook_id'] ) ) { // WPCS: input var okay, CSRF ok.
$this->save();
}
// Delete webhook.
if ( isset( $_GET['delete'] ) ) { // WPCS: input var okay, CSRF ok.
$this->delete();
}
}
}