wpscholar/flex-fields
Composer 安装命令:
composer require wpscholar/flex-fields
包简介
A library for working with fields in WordPress
README 文档
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.
统计信息
- 总下载量: 313
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2017-09-26