Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Plugin Priority Issue

$
0
0

Replies: 1

I’m getting the error “Something is preventing AddToAny from loading. Try disabling content blockers such as ad-blocking add-ons, or try another web browser.”. I found the thread stating to add:

remove_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 );
add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 39 );

and added that into my custom functions php but it didn’t fix the issue. The theme author suggested using 15 instead of 39 but that didn’t work.

I did find some documentation for my theme stating to add this custom php for another similar add on and it appears to be slightly different. I changed the theme name to ‘A2A_SHARE_SAVE_add_to_content’ but that didn’t work either. (I changed the plugin name they suggestion to “another plugin”)

<?php
// Change priority for another plugin
if ( function_exists( 'another_plugin' ) ) {
remove_filter( 'the_content', 'another_plugin');
add_filter( 'the_content', 'another_plugin', 15 );
}
?>

Any suggestion would be greatly appreciated. Thank you!

  • This topic was modified 7 minutes ago by  arctrinity.

Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>