Skip to content

Instantly share code, notes, and snippets.

@ignacio-thfoot
ignacio-thfoot / gist:973c0c6145542d0c22a0d13b26005d20
Last active Feb 10, 2021
ACF Pro - Print all existing field groups
View gist:973c0c6145542d0c22a0d13b26005d20
//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