Reputation: 2606
I can't add attributes to products in woocommerce. It shows this error.
select2.js:934 Uncaught Error: Option ‘ajax’ is not allowed for Select2 when attached to a element.
Upvotes: 1
Views: 435
Reputation: 344
it is a Conflict with WooCommerce and select2.js. this error shows beacause woocommerce is updated i think this will solve your problem.
add_action('init', function() { define('SELECT2_NOCONFLICT', true); }, 1);
function my_acf_init()
{
acf_update_setting('select2_version', 4);
}
add_action('acf/init', 'my_acf_init');
Upvotes: 1