[wp-hackers] Is there a post content action hook?

Stephane Daury wordpress at tekartist.org
Tue Oct 7 16:07:35 GMT 2008


On Oct 07, 2008, at 12:05, Stephane Daury wrote:

>
> There's a filter, but I'm unsure on an action hook:
> add_filter('the_content', 'your_filtering_function');

I guess I should read the whole email before I reply. I brought no new  
info. Sorry, my bad...


>
>
> Stephane
>
>
> On Oct 07, 2008, at 11:54, Aaron Brazell wrote:
>
>> On Tue, Oct 7, 2008 at 11:51 AM, Michael Harris <harrismw at huridocs.org 
>> >wrote:
>>
>>> Is there an action hook that will be called before or after the post
>>> content is displayed?
>>>
>>> I don't want or need the filter that applies to the post title or to
>>> the content. A simple reason for this, is that the_content filter is
>>> applied when getting an excerpt.
>>>
>>> I wish to display information before or after a post using a plugin,
>>> and it is not feasible to use themes, due to the fact that the  
>>> plugin
>>> is meant to be generic (and not tied to one theme).
>>>
>>> "the_content filter gets applied to the content before it trims off
>>> the end. It has to do this, because the raw content may contain  
>>> things
>>> that control formatting or replacement of words and such and you  
>>> don't
>>> want those to be bypassed just because you're getting an excerpt." -
>>> http://wordpress.org/support/topic/115198
>>>
>>
>> I'm pretty sure I've used the_content as an action as well. Try it  
>> and see.
>> 99% sure though.
>>
>> -- 
>> Aaron Brazell
>> web:: www.technosailor.com
>> phone:: 410-608-6620
>> skype:: technosailor
>> twitter:: @technosailor
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



More information about the wp-hackers mailing list