Support

Account

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' );
    }