2017 © Pedro Peláez
 

library voce-media-setting

Voce Settings API Extension for creating media settings.

image

voceconnect/voce-media-setting

Voce Settings API Extension for creating media settings.

  • Saturday, September 19, 2015
  • by kevinlangleyjr
  • Repository
  • 15 Watchers
  • 0 Stars
  • 2,938 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 8 % Grown

The README.md

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, (*1)

Description

Voce Settings API Extension for creating media settings. Requires Voce Settings API., (*2)

Installation

As standard plugin:

See Installing Plugins., (*3)

As theme or plugin dependency:

After dropping the plugin into the containing theme or plugin, add the following:, (*4)

if( ! class_exists( 'Voce_Media_Setting' ) ) {
    require_once( $path_to_voce_media_setting . '/voce-media-setting.php' );
}

Usage

See Voce Settings API., (*5)

Use vs_display_media_select for the display callback arg and vs_sanitize_media_select in the sanitize callbacks arg., (*6)

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, (*7)

1.2
*Fixing issue with referencing self when not within a scope for self, (*8)

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., (*9)

1.0
Initial version., (*10)

The Versions

19/09 2015

dev-fixing_fatals

dev-fixing_fatals

Voce Settings API Extension for creating media settings.

  Sources   Download

GPL-3.0+

by Curtis Loisel
by Kevin Langley

13/07 2015

dev-master

9999999-dev

Voce Settings API Extension for creating media settings.

  Sources   Download

GPL-3.0+

by Curtis Loisel
by Kevin Langley

13/07 2015

1.3.0

1.3.0.0

Voce Settings API Extension for creating media settings.

  Sources   Download

GPL-3.0+

by Curtis Loisel
by Kevin Langley

26/03 2015

1.2

1.2.0.0

Voce Settings API Extension for creating media settings.

  Sources   Download

GPLv2+

by Curtis Loisel
by Kevin Langley

09/05 2014

1.1

1.1.0.0

Voce Settings API Extension for creating media settings.

  Sources   Download

GPLv2+

by Curtis Loisel
by Kevin Langley

06/11 2013

v1.0.0

1.0.0.0

Voce Settings API Extension for creating media settings.

  Sources   Download

GPLv2+

by Curtis Loisel
by Kevin Langley