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.

Метод класса: WC_Admin_Webhooks{}

Хуков нет.

Возвращает

true|false.

Использование

$WC_Admin_Webhooks = new WC_Admin_Webhooks();
$WC_Admin_Webhooks->allow_save_settings( $allow );
$allow(true|false) (обязательный)
If allow save settings.

Код WC_Admin_Webhooks::allow_save_settings() WC 7.1.1

public function allow_save_settings( $allow ) {
	// phpcs:ignore WordPress.Security.NonceVerification.Recommended
	if ( ! isset( $_GET['edit-webhook'] ) ) {
		return false;
	}

	return $allow;
}