WC_Admin_API_Keys::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.
Return Return
(bool)
Source Source
File: includes/admin/class-wc-admin-api-keys.php
public function allow_save_settings( $allow ) { if ( ! isset( $_GET['create-key'], $_GET['edit-key'] ) ) { // WPCS: input var okay, CSRF ok. return false; } return $allow; }