Hey @glark, not something I’ve run into before but I see what you mean.
It looks like it is a WP Ajax permissions issue. This plugin is only configured out of the box for authenticated calls to wp ajax.
A little proof of concept that would theoretically resolve this issue for you:
function ACF_FontAwesome_NoPriv_AJAX() {
if ( class_exists( 'ACFFA_Loader_6' ) ) {
$ACFFA_Loader_6 = new ACFFA_Loader_6();
add_action( 'wp_ajax_nopriv_acf/fields/font-awesome/query', [ $ACFFA_Loader_6, 'select2_ajax_request' ] );
}
}
add_action( 'acf/include_field_types', 'ACF_FontAwesome_NoPriv_AJAX', 20 );
This code would be added somewhere in your functions.php. Try it out and let me know if that works. I may add unauthenticated wp ajax calls for this function to a future update of this plugin but I need to think about it some more. I wouldn’t want something like that to become a vector for DDoS attacks or something.
-
This reply was modified 5 months, 2 weeks ago by
Matt Keys.
Thread Starter
Glark
(@glark)
Success! I was typing about the typo then you corrected the typo! 🙂 Thank you very much, this solves a lot of problems for me. LMK if you have a tip jar or anything. Unfortunately I’ve already got a Pro FA license going.
Glad to hear it. No tip needed but I do appreciate the sentiment!