voceconnect/voce-post-meta-colors
Composer 安装命令:
composer require voceconnect/voce-post-meta-colors
包简介
Voce Post Meta plugin extension for creating color fields
README 文档
README
Contributors: markparolisi, voceplatforms
Requires at least: 3.5.0
Tested up to: 4.0
Stable tag: 1.3.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Description
Extend Voce Post Meta with color picker (iris) fields
Usage
<?php add_action('init', function(){ add_metadata_group( 'demo_meta', 'Page Options', array( 'capability' => 'edit_posts' ) ); add_metadata_field( 'demo_meta', 'demo_color', 'Demo Color', 'color' ); add_post_type_support( 'page', 'demo_meta' ); });
Installation
- Upload
voce-post-meta-colorsto the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Create post meta fields like this
<?php add_action('init', function(){ add_metadata_group( 'demo_meta', 'Page Options', array( 'capability' => 'edit_posts' ) ); add_metadata_field( 'demo_meta', 'demo_color', 'Demo Color', 'color' ); add_post_type_support( 'page', 'demo_meta' ); });
Changelog
1.3.3
- better handling around autoload files when required by multiple project dependencies
1.3.2
- moved to immediate initialization since admin_init was too late
1.3.1
- fixing bug with wrong has_action function
1.3.0
- Preventing fatal error for setups that load dependencies before WordPress
1.1
- Adding support for custom palette arg
1.0.0
- Initial release
统计信息
- 总下载量: 3.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPLv2
- 更新时间: 2013-11-06