Automattic\WooCommerce\Internal\RestApi\Routes\V4\Settings\Account

Controller::validate_setting_valueprivateWC 1.0

Validate a setting value before updating.

Method of the class: Controller{}

No Hooks.

Returns

true|false|WP_Error. True if valid, WP_Error if invalid.

Usage

// private - for code of main (parent) class only
$result = $this->validate_setting_value( $setting_id, $value );
$setting_id(string) (required)
Setting ID.
$value(mixed) (required)
Setting value.

Controller::validate_setting_value() code WC 10.4.3

private function validate_setting_value( $setting_id, $value ) {
	// No specific validation for account settings yet.
	return true;
}