• Hello,
    thank you for your great plugin.
    I have a very useful feature request.

    It would be great if the values in the database could also be updated after a field was renamed, so the assigned values don’t get lost.

    Thank you,
    weseo

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello @weseo!

    Thanks for your feedback! This feature request is kinda tricky to be honest. The way I see it to be implemented would require some hard work and extra settings:

    – In field group, admin rename a field and save the field group
    – Run a query on all post/user/term/options meta in order to find the related “old” field name using field reference (field_abc123) < this could take a lot of time & resources
    – Rename the old field name
    – Take extra care about cloned fields (field_abc123_field_def456)

    The thing is, field groups are not directly tied to post/user/term/option objects, they are independent entities which are queried on demand (on post admin page for example). Making this feature “automatic” (when the admin simply rename a field) will be very hard.

    However, I’m currently working on a new module with an UI that will allow admins to run mass actions on WP (update thousands of post or meta on demand, cleanup unused/old fields, run custom actions etc.). This new module will provide templates that developers can use to run the kind of action you’re asking for.

    The module is not ready yet, but it will be included in ACF Extended at some point (before 1.0).

    I hope it answers your question.

    PS: Thanks for the review ??

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Rename ACF fields afterwards’ is closed to new replies.