Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Field-Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $fields
### Number
```php
$fields
->addNumber('number_Field', [
->addNumber('number_field', [
'label' => 'Number Field',
'instructions' => '',
'required' => 0,
Expand Down Expand Up @@ -197,7 +197,7 @@ $fields
### File
```php
$fields
->addFile('file_Field', [
->addFile('file_field', [
'label' => 'File Field',
'instructions' => '',
'required' => 0,
Expand Down
2 changes: 1 addition & 1 deletion Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ add_action('acf/init', function() use ($banner) {
That's almost a 75% reduction in characters. Here are a few things to note:
* `->build()` will generate the array config on the fly
* At any time you can add to the field group and call `->build()` again to regenerate the array config with your updates
* `->addField()` makes some convienient yet opinionated assumptions on what to put for some config values
* `->addField()` makes some convenient yet opinionated assumptions on what to put for some config values
* You can chain `->addField()` function calls for convenience, since they return an instance of the builder, indent for your own readability