Title: filter doesn&#039;t apply
Last modified: August 21, 2016

---

# filter doesn't apply

 *  [tchab2](https://wordpress.org/support/users/tchab2/)
 * (@tchab2)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/filter-doesnt-apply/)
 * Hi,
    My blogs are bugged because a filter seems to not work in your plugin.
 * That one should replace %s for the addthis:url and addthis:title but doesn’t 
   make the job…
 * addthis_social_widget.php: (line 1511)
 * >  $custom = preg_replace( ‘/<\s*div\s*/’, ‘<div %s ‘, $options[‘below_custom_string’]);
   > 
   > $below = apply_filters(‘addthis_below_content’, $custom); **// Bugged**
 * Thanks,
    Sylvain
 * [http://wordpress.org/plugins/addthis/](http://wordpress.org/plugins/addthis/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [tchab2](https://wordpress.org/support/users/tchab2/)
 * (@tchab2)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/filter-doesnt-apply/#post-4190302)
 * I add this to fix temporairly your code:
 * >  $url = get_permalink();
   >  $title = get_the_title(); $url_below = “addthis:url
   > =’$url’ “; $url_below .= “addthis:title='”. esc_attr( $title) .” ‘”; $custom
   > = str_replace(‘%s’, $url_below, $custom);
 *  [Srijith V](https://wordpress.org/support/users/srijithv/)
 * (@srijithv)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/filter-doesnt-apply/#post-4190561)
 * It can happen if some other theme is processing it before we are. Your fix is
   ideal in your case and we have to see whether it works for all cases. Thanks 
   for pointing it out. We will find a more viable solution and fix it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘filter doesn't apply’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/addthis_70cced.svg)
 * [WordPress Share Buttons Plugin – AddThis](https://wordpress.org/plugins/addthis/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addthis/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addthis/)
 * [Active Topics](https://wordpress.org/support/plugin/addthis/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addthis/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addthis/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Srijith V](https://wordpress.org/support/users/srijithv/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/filter-doesnt-apply/#post-4190561)
 * Status: not resolved