Home › Forums › Backend Issues (wp-admin) › Incompatibility between ACF 5.11.2 – 5.11.3 and ProfilePress › Reply To: Incompatibility between ACF 5.11.2 – 5.11.3 and ProfilePress
The ACF assistance suggest me this solution, I have tried and it works perfectly!
Add the following lines in the functions.php file, to avoid ProfilePress loading the “select2” library and use only the ACF one to avoid conflicts.
add_action( 'wp_enqueue_scripts', 'remove_profilepress_select2', 99 );
add_action( 'admin_enqueue_scripts', 'remove_profilepress_select2', 99 );
function remove_profilepress_select2() {
wp_dequeue_style( 'ppress-select2' );
wp_dequeue_script( 'ppress-select2' );
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.