Skip to content

Instantly share code, notes, and snippets.

@danieliser
Last active June 8, 2016 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieliser/ef4d341fd154ce78f1ac69c71860ffc1 to your computer and use it in GitHub Desktop.
Save danieliser/ef4d341fd154ce78f1ac69c71860ffc1 to your computer and use it in GitHub Desktop.
Add the following to your themes functions.php.
<?php
// Copy everything below the line to your themes functions.php file.
// ------------------------------------------------------
add_action( 'after_setup_theme', 'remove_pum_shortcode_ui' );
function remove_pum_shortcode_ui() {
if ( class_exists( 'PUM_Admin_Shortcode_UI' ) ) {
remove_action( 'admin_init', array( PUM_Admin_Shortcode_UI::instance(), 'init_editor' ), 20 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment