rt_replace_the_content filter not removed


#1

Hi,

In RTMediaRouter.php a filter is added to the_content (rt_replace_the_content) but is, as it seems, not removed.
On our page we have 2 appearances of apply_filter( ‘the_content’, xxx ) and they are both replaced with the rtMedia component. Only the first appearance should be replaced.

How can I prevent this?

Thanks!


#2

Hi Bram,

You can prevent it by removing that filter in your theme itself.

Check this question -> http://wordpress.stackexchange.com/questions/57079/how-to-remove-a-filter-that-is-an-anonymous-object in which they had removed the filter which was added in a class.


#3

Thanks Ritesh, that works!


#4

I am glad to know that your query is resolved :slight_smile:


#5