WC_Admin_Webhooks::allow_save_settings()
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 Admin Webhooks::allow save settings WC 9.4.2
public function allow_save_settings( $allow ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( ! isset( $_GET['edit-webhook'] ) ) { return false; } return $allow; }