I’m not sure what you mean by ‘ads’. If this is some bespoke content added to the theme then plugin won’t filter it.
To do this the plugin code could be updated. In the future I will be adding hooks in the plugin so you can add code to your theme or another plugin to modify WP Content Filter to filter any extra content you wish.
That will be fantastic. Please let me know when you do this so that I can update.
Many Thanks
Sandra.
Actually, looking at the code you should be able to do this already. For example the plugin filters ‘the_title’ via:
add_filter( 'the_title', 'pccf_filter' );
So, if you have custom content that can be filtered then you can just pass it through the plugin content filter as follows:
add_filter( 'my_custom_content', 'pccf_filter' );
Hope that helps!
I am not to familiar with code, I adding some custom code but can’t get it to filter on the ad listings page.
I have a classified ads site and the filter works great on the single ad listing page, the page where you are viewing the persons ad, but when scrolling through the ad listings, that is the lists of ads posted, it do not filter on these.
It is a shame, as wp content filter is very easy to use and would be a great plugin for classified ads sites.
As I said above if you can hook into the content you want to filter then you can pass it to the ‘pccf_filter’ callback function.
It sounds like you’d need someone to take a closer look at the code to figure it out.
Hi,
Would you be able to look into the code for me and if so how much will it cost?
Sandra
I’m not available for custom work right now, but if you get a working patch let me know. I’d take a look and if all OK add it to the next version of the plugin.