GithubHelp home page GithubHelp logo

voce-media-setting's Introduction

Voce Media Setting

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.

voce-media-setting's People

Contributors

kevinlangleyjr avatar matgargano avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.