[wp-hackers] Re: the_excerpt filters

Alakhnor alakhnor at wanadoo.fr
Thu Mar 27 19:50:19 GMT 2008

> On Wed, Mar 26, 2008 at 2:30 PM, Alakhnor <alakhnor at wanadoo.fr> wrote:
> > Yes, but it could be done in differentiating get_the_content('') and
> > the_content filters, probably by adding a filter in between, in
> > wp_trim_excerpt.
> >
> > Many plugins use 'the_content' filter. But, let's say you want to
> replace a
> > tag like <youtube> and gain control over how it's done in the excerpt,
> you
> > have to use workarounds to achieve it.
> I'm not following you there. If you want to change something in the
> excerpt, you have both the_excerpt and get_the_excerpt filters. What's
> wrong with those?
It's because those filters (the_excerpt and get_the_excerpt) are applied
after the content filters. Therefore, whatever is built inside the content
has to be unbuild if you want the excerpt to not apply the same changes.


More information about the wp-hackers mailing list