Skip to content

Instantly share code, notes, and snippets.

@ignacio-thfoot
ignacio-thfoot / gist:973c0c6145542d0c22a0d13b26005d20
Last active February 10, 2021 08:52
ACF Pro - Print all existing field groups
//check that acf pro is installed
if(function_exists('acf_get_field_groups')):
//array with ACF field groups
$aGroups = acf_get_field_groups();
foreach($aGroups as $aGroup):
echo '<pre>';
//show group info