Skip to content

Instantly share code, notes, and snippets.

@danieliser

danieliser/functions.php

Last active Jun 8, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.