wpscholar/flex-fields 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.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

Micah Wood

Contributors

This project exists thanks to all the people who contribute.

project contributors

统计信息

  • 总下载量: 313
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2017-09-26