wpscholar / flex-fields
A library for working with fields in WordPress
Package info
github.com/wpscholar/flex-fields
Language:JavaScript
pkg:composer/wpscholar/flex-fields
1.7.6
2021-09-07 21:09 UTC
Requires
- wpscholar/templatex: ^1.2
This package is auto-updated.
Last update: 2026-05-15 10:38:04 UTC
README
A library for working with fields in WordPress.
Installation
- Run
composer require wpscholar/flex-fields - Make sure you require the
vendor/autoload.phpfile 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.