voceconnect/voce-post-meta-colors 问题修复 & 功能扩展

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

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

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

  1. Upload voce-post-meta-colors to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. 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

GitHub 信息

  • Stars: 0
  • Watchers: 13
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPLv2
  • 更新时间: 2013-11-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固