定制 voceconnect/voce-media-setting 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

voceconnect/voce-media-setting

Composer 安装命令:

composer require voceconnect/voce-media-setting

包简介

Voce Settings API Extension for creating media settings.

README 文档

README

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

Description

Voce Settings API Extension for creating media 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_Media_Setting' ) ) {
    require_once( $path_to_voce_media_setting . '/voce-media-setting.php' );
}

Usage

See Voce Settings API.

Use vs_display_media_select for the display callback arg and vs_sanitize_media_select in the sanitize callbacks arg.

Example

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

Changelog

1.3.0

  • Preventing fatal error for setups that load dependencies before WordPress

1.2
*Fixing issue with referencing self when not within a scope for self

1.1
Adding custom plugins_url function to assist in including the plugin in WP VIP projects. Switching from wp_get_attachment_image to wp_get_attachment_image_src due to issues with getimagesize() and .ico files.

1.0
Initial version.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 12
  • Forks: 1
  • 开发语言: JavaScript

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固