Support

Account

Forum Replies Created

  • Good news I was looking to add a button to the admin metabox created by ACF to pass an ajax action and found a great solution for you here.

    https://github.com/SnakeO/acf-admin-button-field

    This code will allow you to add a plug-in that adds a ‘button’ to your field types and there you can set it for external URL or AJAX – the rest is like every other AJAX solution that is well documented around the web.

    Hope this helps you. I’ve already used it for my project. It worked great!

  • I will test this with the new code that was added to ‘Admin Columns Pro’ and let you know if we are still seeing the same error when the JSON is active in the local theme directory.

    Should have an answer within a day or so, if not earlier.

  • I did some more work on this and found the following missing elements that worked in v4 and now in v5/PRO don’t work.

    apply_filters( 'acf/get_field_groups', array() )
    apply_filters( 'acf/location/match_field_groups', array(), $match_args )
    apply_filters( 'acf/field_group/get_fields', array(), $group['id'] )

    I used the following:

    acf_get_field_groups()
    acf_get_field_groups($match_args )
    acf_get_fields( $matchinggroup['ID'] )

    This ‘hack’ is working HOWEVER it is a problem because I enabled the local JSON cache directory and the fix I worked out immediately failed again.

    Your thoughts are much appreciated.

Viewing 3 posts - 1 through 3 (of 3 total)