You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -280,6 +280,8 @@ class Single extends Controller
280
280
}
281
281
```
282
282
283
+
Clone fields will return the value of each the fields in a separate variable, unless the _Prefix Field Names_ option is enabled in which case the the cloned fields will be returned in an object with the field name given to the clone field.
284
+
283
285
The values are returned as objects, however you can disable this to keep them as arrays.
284
286
285
287
```php
@@ -288,7 +290,6 @@ add_filter('sober/controller/acf/array', function () {
288
290
});
289
291
```
290
292
291
-
292
293
### Template Override Option;
293
294
294
295
You should only use overrides in edge-case scenarios. Sticking to the WordPress hierarchy is recommended usage. However, one edge-case is the 404 template.
0 commit comments