Home › Forums › Backend Issues (wp-admin) › How can I send an additional field during ajax requests? › Reply To: How can I send an additional field during ajax requests?
The plugin that you mention was created by a 3rd party and not the developers of ACF.
However, I took a quick look. Going to be honest, I don’t know the answer, but my guess is that this is happening because load_plugin_textdomain()
is being called too early in this plugin and this is causing the erratic behavior. I see that this plugin has not been updated in some time and this could also be part of the issue.
https://developer.wordpress.org/reference/functions/load_plugin_textdomain/
At any rate…
If you look at the code for that pluing you’ll see a call to load_plugin_textdomain()
inside of the plugin’s __construct()
method. I would try moving this call into the plugin’s include_field_types()
method as can be see in the field type starter code that the ACF developer provides here https://github.com/AdvancedCustomFields/acf-field-type-template/blob/master/acf-FIELD-NAME/acf-FIELD-NAME.php.
Don’t know if this will fix your issue or not.
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.