Note: This filter is available with picu Brand & Customize version 1.6.0.

Please have a look at the available field options.


function my_picu_approval_fields( $fields ) {

	$fields = [
		[
			'type' => 'paragraph',
			'label' => 'Please enter your address.',
		],
		[
			'type' => 'text',
			'label' => 'Street',
			'placeholder' => '',
			'width' => 50,
			'required' => true,
		],
		[
			'type' => 'text',
			'label' => 'Postcode',
			'placeholder' => '',
			'width' => 20,
			'required' => true,
			'validation' => "^\d{4,5}+$",
		],
		[
			'type' => 'text',
			'label' => 'City',
			'placeholder' => '',
			'width' => 30,
			'required' => true,
		],
		[
			'type' => 'select',
			'label' => 'Country',
			'width' => 50,
			'required' => true,
			'options' => [
				'de|Germany',
				'at|Austria',
				'ch|Switzerland',
			],
			'value' => 'ch',
		],
	];

	return $fields;
}

add_filter( 'picu_approval_fields', 'my_picu_approval_fields' );

Still having issues?

In your WordPress Admin go to picu > Settings > Debug Info and send the contents of this page and your questions to support@picu.io.