Support

Account

Home Forums General Issues Get the entire ACF config outside post

Helping

Get the entire ACF config outside post

  • Hi,

    We currently develop a plugin that is based on acf field. Weve created a plugin allow user to map XML to ACF field.

    i want to know if there is a function to get the entire acf configuration (like the JSON content given by the export button)

    Thank

  • 
    $group = acf_get_field_group($group_key);
    $group['fields'] = acf_get_fields($group_key);
    

    would do this
    if you want it as JSON then

    
    $json = json_encode($group);
    
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Get the entire ACF config outside post’ is closed to new replies.