Blog posts tagged filters
How to correctly hook your filter to the post content
Posted 13 years in WordPress Plugins |
Comments (85)
I’m seeing a lot of plugins that just hook themselves on the the_content filter tag, without bothering to handle excerpts.
Because get_the_excerpt() / the_excerpt() will call get_the_content() if the post doesn’t have an excerpt set, in many cases you get your filter applied on excerpts as well. [...]