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

addthis_sharing_buttons_enable filter not working

$
0
0

Replies: 0

I don’t have a link to a site, yet, but I will work on that. However I added this following clip to my functions.php:


function custom_add_this_filter($enable) {
  $enable = false;
  return $enable;
}
add_filter('addthis_sharing_buttons_enable', 'custom_add_this_filter', 100, 1);

Obviously the plan is to put some conditional logic there to not show AddThis on pages that are protected. However, even though this filter is running, the AddThis is always being shown.

Thanks for any suggestions.


Viewing all articles
Browse latest Browse all 59525

Trending Articles