This topic is: resolved
- This topic has 12 replies, 2 voices, and was last updated 3 years, 5 months ago by .
You cannot reply to this support topic. Please open your own support topic.
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.6.7, advanced ads, plugin conflict
@ shanna
If you drop the code I gave in the theme’s functions file instead of using a Code Snippets as suggested, you need to after_setup_theme
action instead of the plugins_loaded
action to run the code. Like so:
add_action( 'after_setup_theme', 'cn_remove_code_pre_filters', 11 );
function cn_remove_code_pre_filters() {
remove_filter( 'content_save_pre', array( 'cnShortcode', 'clean' ) );
remove_filter( 'content_save_pre', array( 'cnShortcode', 'removeCodePreTags' ) );
}
The reason is that the plugins_loaded
action has long since been fired and run by WP by the time the theme’s functions file is loaded so the code to remove the filters was never actually being run.
I edited the test site’s theme functions file to use the correct action. Removing those filters do remove the conflict as I suspected.
@Steven …
Duh! – i should have noticed myself that a different hook would be needed, sorry.
Yep, looks good now to me :)
Thanks so much for figuring this out.
I’m going to bring your solution to the attention of Thomas at Advanced Ads.
@ shanna
RE: I’m going to bring your solution to the attention of Thomas at Advanced Ads.
I’ve already been in touch. They’re reviewing my proposed change so it may make it a in future update to their plugin.
Thanks for your patients in sorting this issue out!
You cannot reply to this support topic. Please open your own support topic.