[wp-testers] apply_filters()
Jennifer Hodgdon
yahgrp at poplarware.com
Tue May 26 20:28:01 GMT 2009
Well, there's your problem.
The function the_excerpt echos its output. Your function doesn't. Just
calling your KEW_short_excerpt function will not cause its output to
be printed/echoed anywhere.
--Jennifer
Karl Wångstedt wrote:
> 26 maj 2009 kl. 19.11 skrev Jennifer Hodgdon:
>
>> That all looks fine, so far... but who is calling the
>> KEW_short_excerpt function, and what is the calling function doing
>> with the output?
>
> The function is called in the theme as a replacement for the_excerpt()
> in some cases, but also where it gets modified before echoed out.
>
> I hoped I could use the same function in both cases, and by that only
> use one hook for the filters. But, as I said, I can't get it to apply
> the filter if I do a return of the output. Only if I echo the output.
>
> Stange...
>
>> Also, this whole discussion belongs on the wp-hackers list, not
>> wp-testers... just noticed where it was...
>
> OK. I'm sorry if I posted to the wrong list. I'll end here and take the
> question to wp-hackers instead.
>
> Thanks for your help.
> Karl Wångstedt
> ----------------------------------
> Wångstedt nova
> www.wangstedt.net
>
> Karl Wångstedt 0278-61 12 33
> Stenhuggarvägen 3g 070-578 13 04
> 821 41 BOLLNÄS
> ----------------------------------
> Det här brevet skickades med en Macintosh från Apple.
> Garanterat virusfri med Mac OS X.
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
>
>
--
Jennifer Hodgdon * Poplar ProductivityWare
www.poplarware.com
Drupal, WordPress, and custom Web programming
More information about the wp-testers
mailing list