Filtering Issue
-
I am trying to add code to my functions.php to allow addthis to show up on specific pages. According to the documentation, the filters in the 6.0 version have changed.
My quick and dirty filter example to disable on all pages does not seem to work:
add_filter('addthis_sharing_buttons_enable', 'my_addthis_sharing_buttons_enable'); function my_addthis_sharing_buttons_enable($enable) { return false; }
When I enable this, the addThis buttons still appear on every page. Shouldn’t this example hide the share buttons on every single page, or am I misunderstanding the filter?
Thanks for your help!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Filtering Issue’ is closed to new replies.