wapiclo/wapic-fields
最新稳定版本:2.0.4
Composer 安装命令:
composer require wapiclo/wapic-fields
包简介
A lightweight and developer-friendly custom fields system for WordPress. Supports Options Page, Post Meta, and Taxonomy Term Meta.
README 文档
README
A lightweight and developer-friendly custom fields system for WordPress.
Supports Options Page, Post Meta, and Taxonomy Term Meta — built following WordPress standards, without heavy frameworks.
Easily add and manage fields like text, select, checkbox, image, gallery, editor, and more with full support for conditional logic and client-side JS validation.
Features
- Lightweight & Simple – no bloat, just clean custom fields.
- Flexible – works with post meta, options page, and term meta.
- Conditional Fields – show, hide, enable, or disable fields dynamically.
- Built-in JS Validation – user-friendly client-side validation.
- WordPress Standards – fully compatible and extendable with WP core functions.
Supported Fields
Wapic Fields provides the following field types for WordPress. This list is for quick reference:
- Text – Single-line text input
- Textarea – Multi-line text input
- URL – URL input with validation
- Email – Email input with validation
- Number – Numeric input
- Phone – Phone number input
- Checkbox – Single or multiple checkboxes
- Radio – Single choice selection
- Toggle – On/off switch
- Select – Dropdown select
- Select2 – Enhanced select with search & multiple selection
- Image – Single image upload
- Gallery – Multiple images upload
- File – File upload
- Color – Color picker
- Date – Date picker
- WP Editor – WordPress rich text editor
Why Use This?
Unlike bulky frameworks, this project focuses on being:
- Fast → lightweight and minimal.
- Native → built the WordPress way.
- Flexible → easily extendable by developers.
Perfect for theme & plugin developers who want powerful custom fields without unnecessary overhead.
Installation
There are multiple ways to install Wapic Fields:
- Instalasion via composer (recommended)
composer require wapiclo/wapic-fields - As a WordPress Plugin Installation instructions
- Include via File Include instructions
For Usage
Here are examples to help you get started:
- Options Example: Usage Example
- Metabox Example: Usage Example
- Taxonomy Example: Usage Example
Field
You can use various field types provided by Wapic Fields: Field Types Documentation
Example
We provide examples for Meta, Options, and Term Meta. The example files are included in the Examples/ folder.
To load the examples in the WordPress admin, add the following code to your main theme, plugin file or wp-config.php:
define('WAPIC_FIELDS_LOAD_EXAMPLES', true);
Changelog
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-10-28