diff --git a/Field-Types.md b/Field-Types.md index 3d54715..aece199 100644 --- a/Field-Types.md +++ b/Field-Types.md @@ -47,7 +47,7 @@ $fields ### Number ```php $fields - ->addNumber('number_Field', [ + ->addNumber('number_field', [ 'label' => 'Number Field', 'instructions' => '', 'required' => 0, @@ -197,7 +197,7 @@ $fields ### File ```php $fields - ->addFile('file_Field', [ + ->addFile('file_field', [ 'label' => 'File Field', 'instructions' => '', 'required' => 0, diff --git a/Home.md b/Home.md index 919e25e..c411cd2 100644 --- a/Home.md +++ b/Home.md @@ -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 \ No newline at end of file