| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class ACFComposer |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Registers a local field group in Advanced Custom Fields based on a config array. |
||
| 9 | * |
||
| 10 | * Included fields, subfields, etc. can either contain another array defining them, or a string that stands for a WordPress filter. This filter will be applied and its result used as the field, subfield, etc. |
||
| 11 | * |
||
| 12 | * @param array $config Configuration array for the local field group. |
||
| 13 | * |
||
| 14 | * @return boolean Was the field group added or not. |
||
| 15 | */ |
||
| 16 | public static function registerFieldGroup($config) |
||
| 22 |