Support

Account

Home Forums ACF PRO ACF Pro 5.6 Update: "Restructured plugin files" Reply To: ACF Pro 5.6 Update: "Restructured plugin files"

  • Hi hi,

    Here’s a simple example of how a addon extends the core field looks like:
    https://gist.github.com/gummiforweb/3293ec7a0f0708df40c2ae5df8252fa3

    Here’s some things I notice so far with the sample field,
    1) When create new field, the field “My Custom Field” do show up in the field type dropdown, but after 5.6, “My Custom Field” doesn’t show up in the dropdown anymore.
    5.5.14: https://www.screencast.com/t/weRD4owkUY
    5.6.0: https://www.screencast.com/t/7BETqEES3

    2) When editing and exiting field in a post, it’s loading repeater’s render_field. (i think this might be true for all the field actions/filters)
    5.5.14: https://www.screencast.com/t/lVliDpia
    5.6.0: https://www.screencast.com/t/YqDTz23RQ

    Right now, a quick fixes on the addon part is to add an empty initialize method like:

    
    public function initialize() {}
    

    🙂