ACF-PHP-Recovery icon indicating copy to clipboard operation
ACF-PHP-Recovery copied to clipboard

Not working with ACF 5.7.12 onwards – "acf_local" function removed

Open joneslloyd opened this issue 6 years ago • 6 comments

Great plugin!

It doesn't seem to be working with ACF 5.7.12 onwards due to the acf_local function being removed.

ACF support said:

Yes, the `acf_local()` function was removed whilst making improvements to the "Local Fields" component.
Instead of directly accessing the acf_local() data, please make use of the functions available in the "includes/local-fields.php" file such as:
- acf_get_local_field_groups()
- acf_get_local_fields()

I'm not experienced enough with this particular part of ACF to patch it, but I just wanted to let you know.

Thanks, Lloyd

joneslloyd avatar Mar 06 '19 09:03 joneslloyd

Hi @joneslloyd, Thank you so much for letting us know. We will digg into this to find a workaround. Best

MaximeCulea avatar Mar 06 '19 09:03 MaximeCulea

No problem 🙂 Sorry I can't be of more help here.

joneslloyd avatar Mar 06 '19 09:03 joneslloyd

NP, this is the first step and a big help anyhow ;)

MaximeCulea avatar Mar 06 '19 09:03 MaximeCulea

Hi @joneslloyd @MaximeCulea Just submitted a pull request with a fix for that specific point.

steingeo avatar Mar 06 '19 18:03 steingeo

Thank you, let's work on the #19 then.

MaximeCulea avatar Mar 11 '19 10:03 MaximeCulea

https://yadi.sk/d/rDYs_fOLeMEsdg - This is a revised working version of the plugin. Just replace the file in the plugin folder

tve76 avatar Dec 23 '20 19:12 tve76