Skip to content

Instantly share code, notes, and snippets.

@kjohnson
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save kjohnson/604973d4877fdbddcf2a to your computer and use it in GitHub Desktop.

Select an option

Save kjohnson/604973d4877fdbddcf2a to your computer and use it in GitHub Desktop.
Disable do_shortcode for Front End Editor
<?php if ( ! defined( 'ABSPATH' ) ) exit;
/*
* Plugin Name: Ninja Forms - Front End Editor - Disable do_shortcode
* Plugin URI: http://kylebjohnson.me
* Version: 0.1.0
* Author: The WP Ninjas
*/
add_filter( 'nf_fee_do_shortcodes', 'nf_fee_do_shortcodes_disbale' );
function nf_fee_do_shortcodes_disbale( $enabled ){
return FALSE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment