WC_Admin_Webhooks::allow_save_settings
Check if should allow save settings. This prevents "Your settings have been saved." notices on the table list.
Method of the class: WC_Admin_Webhooks{}
No Hooks.
Returns
true|false.
Usage
$WC_Admin_Webhooks = new WC_Admin_Webhooks(); $WC_Admin_Webhooks->allow_save_settings( $allow );
- $allow(true|false) (required)
- If allow save settings.
WC_Admin_Webhooks::allow_save_settings() WC Admin Webhooks::allow save settings code WC 10.8.1
public function allow_save_settings( $allow ) {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
if ( ! isset( $_GET['edit-webhook'] ) ) {
return false;
}
return $allow;
}