Support

Account

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?

  • @princeofabyss

    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.