voceconnect/voce-color-setting 问题修复 & 功能扩展

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

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

voceconnect/voce-color-setting

Composer 安装命令:

composer require voceconnect/voce-color-setting

包简介

Voce Settings API Extension for creating color picker settings.

README 文档

README

Contributors: kevinlangleyjr, csloisel
Tags: settings, color, iris
Requires at least: 3.5
Tested up to: 3.6
Stable tag: 1.1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Description

Voce Settings API Extension for creating color picker settings. Requires Voce Settings API.

Installation

As standard plugin:

See Installing Plugins.

As theme or plugin dependency:

After dropping the plugin into the containing theme or plugin, add the following:

if( ! class_exists( 'Voce_Color_Setting' ) ) {
    require_once( $path_to_voce_color_setting . '/voce-color-setting.php' );
}

Usage

See Voce Settings API.

Use vs_display_color_picker for the display callback arg and vs_sanitize_color_picker in the sanitize callbacks arg.

Example

<?php
    $page->$group->add_setting( "Field Title", "field_id", array(
        'display_callback'   => 'vs_display_color_picker',
        'sanitize_callbacks' => array( 'vs_sanitize_color_picker' )
    ) );
?>

Changelog

1.1.2

  • Preventing fatal error for previously declared functions

1.1.0

  • Preventing fatal error for setups that load dependencies before WordPress

1.0.2 Different regex for color sanitization.

1.0.1 Fixing regex for color sanitization.

1.0.0 Initial version.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固