Skip to content

Instantly share code, notes, and snippets.

@n7studios
Created December 29, 2014 12:12
Show Gist options
  • Save n7studios/34ed7b67b261c64c99c5 to your computer and use it in GitHub Desktop.
Save n7studios/34ed7b67b261c64c99c5 to your computer and use it in GitHub Desktop.
Soliloquy - Disable Add Slider Button
<?php
/**
* Plugin Name: Soliloquy - Disable Add Slider Button
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Disables the Add Slider Button on Posts, Pages and Custom Post Types. Requires Soliloquy 2.3.9.7+
*/
/**
* Start the slider based on the supplied index
*
* @param string $button Button HTML
* @return string New Button HTML
*/
function soliloquy_disable_add_slider_button($button) {
return '';
}
add_filter( 'soliloquy_media_button', 'soliloquy_disable_add_slider_button' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment