Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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