diff --git a/includes/acf-fields.php b/includes/acf-fields.php index 13222b1..fabec06 100644 --- a/includes/acf-fields.php +++ b/includes/acf-fields.php @@ -71,12 +71,19 @@ function events_has_admin_field_group() { * * Skips registration when an admin-created field group is already * assigned to the event post type, allowing full editorial control. + * + * Skips registration when an admin-created field group is already + * assigned to the event post type, allowing full editorial control. */ function events_register_acf_fields() { if ( events_has_admin_field_group() ) { return; } + if ( events_has_admin_field_group() ) { + return; + } + if ( function_exists( 'acf_add_local_field_group' ) ) : acf_add_local_field_group(