# Creating Custom Field
Creating new custom fields has been made easier with the release of the latest version.
To add the new field begin by downloading our field template (opens new window) and place it in within your current theme. Then:
cdor open a new terminal window inside the template folder
composer dump-autoloadto create the
autoload.phpfile for the field
vendor/autoload.phpfile inside your
after_setup_themefunction, after the inclusion of the
- Then edit your
wp-config.phpfile in your installation root directory and add
define( 'SCRIPT_DEBUG', true );to allow the loading of the development bundles
yarn startto enter development mode.
Now you can start developing the new custom field.
First replace every instance of
yourfieldname within the template with the name of your field :
- For PHP files separate your field words with underscores like -
- For JS files use cebab case when defining the field name like -
test-fieldand camel sase for the component name
class TestField extends ...