Data is not set in the list

When you add a vendor everything is saved


But in the frontend form, the value that is saved is not set in the list

I use this code to add and sort fields

add_filter(
	'hivepress/v1/forms/vendor_update',
	function( $form ) {
		$field_city = [
			"label" 			=> "Города присутствия",
			"type"				=> "select",
			"_order"			=> 90,
			"required"			=> true,
			"description"		=> NULL,
			"max_values"		=> NULL,
			"options"			=> "terms",
			"multiple"			=> true,
			"filter_operator"	=> true,
			"option_args"		=> [
				"taxonomy" => "hp_vendor_u_gorod",
			],
			"statuses"			=> [
				"optional"		=> NULL,
			]
		];

		$form['fields']['gorod'] = $field_city;
		$form['fields']['first_name']['required'] = true;
		$form['fields']['last_name']['required'] = true;
		$form['fields']['description']['_order'] = 600;
		$form['fields']['email']['_order'] = 800;
		$form['fields']['email']['label'] = "Эл. адрес контактного лица";
		$form['fields']['last_name']['_order'] = 810;
		$form['fields']['first_name']['_order'] = 820;
		$form['fields']['password']['_order'] = 830;
		$form['fields']['current_password']['_order'] = 840;
		// _log($form);

		return $form;
	},
	1000
);

Hi,

Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.