Skip to content

Enable select2 for dropdown fields that have stylized ui enabled#276

Open
thedanielcho wants to merge 1 commit intoWPUserManager:developfrom
thedanielcho:select2-for-dropdown
Open

Enable select2 for dropdown fields that have stylized ui enabled#276
thedanielcho wants to merge 1 commit intoWPUserManager:developfrom
thedanielcho:select2-for-dropdown

Conversation

@thedanielcho
Copy link

Allows select2 to be enabled for acf single select dropdown fields by enabling the stylized ui option.
I haven't built the min.js files but I can make an additional commit if necessary.
This also requires an additional change in the wpum-acf plugin to work:
/wpum-acf/includes/registration-form.php on line 59 I added an additional value for ui

$fields[ $field['key'] ] = array(
	'label'       => $label,
	'type'        => $type,
	'description' => $field['instructions'],
	'required'    => $field['required'],
	'value'       => $default,
	'priority'    => 100 + ( $i * 10 ) + $field['menu_order'],
	'options'     => $options,
	'ui'		  => $field['ui'],
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant