WC_Admin_Webhooks::allow_save_settings( bool $allow )

Check if should allow save settings.


Description Description

This prevents "Your settings have been saved." notices on the table list.


Parameters Parameters

$allow

(Required) If allow save settings.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/admin/class-wc-admin-webhooks.php

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

		return $allow;
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.