wpscholar / flex-fields
A library for working with fields in WordPress
Installs: 311
Dependents: 1
Suggesters: 0
Security: 0
Stars: 10
Watchers: 2
Forks: 2
Open Issues: 4
Language:JavaScript
Requires
- wpscholar/templatex: ^1.2
- dev-master
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6
- 1.5.1
- 1.5
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4
- 1.3
- 1.2
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1
- 1.0
- dev-dependabot/npm_and_yarn/webpack-5.76.1
- dev-dependabot/npm_and_yarn/sideway/formula-3.0.1
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/loader-utils-2.0.4
- dev-issue/missing-toggle-styles
- dev-dev
This package is auto-updated.
Last update: 2024-11-15 07:44:56 UTC
README
A library for working with fields in WordPress.
Installation
- Run
composer require wpscholar/flex-fields
- Make sure you require the
vendor/autoload.php
file in your project.
Usage
Register a field
<?php register_flex_field( 'email_address', // The field name [ // The field arguments 'field' => 'input', 'type' => 'email', 'value' => 'john.doe@gmail.com', ], 'default' // The group name, defaults to 'default' );
Render a field
<?php render_flex_field( 'email_address', // Field name 'default' // The group name, defaults to 'default' );
Maintainers
Contributors
This project exists thanks to all the people who contribute.