@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * in order to make sure custom post types are registered before acf fields |
| 14 | 14 | * (e.g. for option pages) are added the priority needs to be lower than 5 |
| 15 | 15 | */ |
| 16 | -add_action('init', function () { |
|
| 16 | +add_action('init', function() { |
|
| 17 | 17 | $featureOptions = Feature::getOption('flynt-custom-post-types', 0); |
| 18 | 18 | $dir = isset($featureOptions['dir']) ? $featureOptions['dir'] : null; |
| 19 | 19 | $fileName = isset($featureOptions['fileName']) ? $featureOptions['fileName'] : null; |
@@ -79,14 +79,14 @@ discard block |
||
| 79 | 79 | $filterNamespace = self::FILTER_NAMESPACES[$category]; |
| 80 | 80 | $filterName = "{$filterNamespace}/{$name}/Fields/{$groupKey}"; |
| 81 | 81 | |
| 82 | - add_filter($filterName, function ($config) use ($groupValue) { |
|
| 82 | + add_filter($filterName, function($config) use ($groupValue) { |
|
| 83 | 83 | return $groupValue; |
| 84 | 84 | }); |
| 85 | 85 | if (ArrayHelpers::isAssoc($groupValue) && array_key_exists('sub_fields', $groupValue)) { |
| 86 | 86 | $filterName .= '/SubFields'; |
| 87 | 87 | $subFields = $groupValue['sub_fields']; |
| 88 | 88 | |
| 89 | - add_filter($filterName, function ($subFieldsconfig) use ($subFields) { |
|
| 89 | + add_filter($filterName, function($subFieldsconfig) use ($subFields) { |
|
| 90 | 90 | return $subFields; |
| 91 | 91 | }); |
| 92 | 92 | |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | continue; |
| 109 | 109 | } |
| 110 | 110 | $subFieldName = ucfirst($subField['name']); |
| 111 | - $subFilterName = "{$parentFilterName}/{$subFieldName}"; |
|
| 111 | + $subFilterName = "{$parentFilterName}/{$subFieldName}"; |
|
| 112 | 112 | |
| 113 | - add_filter($subFilterName, function ($subFieldConfig) use ($subField) { |
|
| 113 | + add_filter($subFilterName, function($subFieldConfig) use ($subField) { |
|
| 114 | 114 | return $subField; |
| 115 | 115 | }); |
| 116 | 116 | } |