01/16/2016 at 8:30 pm
#361437
Keymaster
@ Chad
Yeah, sorry, the code I gave will need tweaked just a really tiny bit.
add_action( 'plugins_loaded', 'cn_remove_single_entry_shortcode_filter' );
function cn_remove_single_entry_shortcode_filter() {
remove_filter( 'the_content', array( 'cnShortcode', 'single' ), 6 );
}
I had to increase the priority from 7 to 6 for the filter for compatibility reasons. Unfortunately WP requires the priority when removing filters so me changing the priority “broke” the code I gave because the priorities no longer matched.
Apologies for the trouble, hope this helps!
ps. I don’t often change filters or priorities… only when I need to for compatibility or conflicts with other plugins/themes so you should not encounter this too often… or maybe never again, I hope.
