Skip to content

Instantly share code, notes, and snippets.

@thomasgriffin
Created March 7, 2014 17:37
Show Gist options
  • Save thomasgriffin/9416114 to your computer and use it in GitHub Desktop.
Save thomasgriffin/9416114 to your computer and use it in GitHub Desktop.
Removes all Soliloquy admin output signals.
<?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