WPScholar / flex-fields
WordPress 中处理字段的库
1.7.6
2021-09-07 21:09 UTC
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-09-15 07:15:42 UTC
README
WordPress 中处理字段的库。
安装
- 运行
composer require wpscholar/flex-fields - 确保你在项目中需要
vendor/autoload.php文件。
使用方法
注册字段
<?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' );
渲染字段
<?php render_flex_field( 'email_address', // Field name 'default' // The group name, defaults to 'default' );
维护者
贡献者
这个项目的存在要感谢所有贡献者。