[wp-hackers] Replacing Hooks/Functions

David Chait davebytes at comcast.net
Mon Jul 3 20:50:17 GMT 2006


the_content grabs the post/page content, then calls do_filter('the_content', 
$content).  so if your plugin is the highest priority, you can 'nuke' the 
'incoming' content, and replace it with anything.

-d

----- Original Message ----- 
From: "Computer Guru" <computerguru at neosmart.net>
To: <wp-hackers at lists.automattic.com>
Sent: Monday, July 03, 2006 4:43 PM
Subject: RE: [wp-hackers] Replacing Hooks/Functions


| Does that work?
| I mean, the_content() is a function called that will return data... if I
| add a hook to this, won't it modify the _data_ that the_content() puts 
out?
|
| I want to change the data before it even reaches the_content, not the data
| that the_content() spits back....



More information about the wp-hackers mailing list