Created
March 7, 2014 17:37
-
-
Save thomasgriffin/9416114 to your computer and use it in GitHub Desktop.
Removes all Soliloquy admin output signals.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'after_setup_theme', 'tgm_soliloquy_remove_post_type' ); | |
function tgm_soliloquy_remove_post_type() { | |
if ( ! class_exists( 'Soliloquy' ) ) { | |
return; | |
} | |
add_filter( 'soliloquy_post_type_args', '__return_empty_array' ); | |
} | |
add_action( 'admin_init', 'tgm_soliloquy_remove_metabox' ); | |
function tgm_soliloquy_remove_metabox() { | |
if ( ! class_exists( 'Soliloquy' ) ) { | |
return; | |
} | |
remove_action( 'add_meta_boxes', array( Soliloquy_Metaboxes::get_instance(), 'add_meta_boxes' ), 100 ); | |
remove_filter( 'media_buttons_context', array( Soliloquy_Editor::get_instance(), 'media_button' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment