WC_Admin_Webhooks::allow_save_settings()publicWC 1.0

Check if should allow save settings. This prevents "Your settings have been saved." notices on the table list.

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

No Hooks.

Return

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.

Code of WC_Admin_Webhooks::allow_save_settings() WC 6.7.0

public function allow_save_settings( $allow ) {
	if ( ! isset( $_GET['edit-webhook'] ) ) { // WPCS: input var okay, CSRF ok.
		return false;
	}

	return $allow;
}