Ah, OK… well, using $_POST seems kinda hack-ish, why don’t they just pass that information in to the hook?
*sigh* If I must, I must… thanks for the idea!
What hook do I use/how can I check the post type as I save…?
As far as I can tell, the only variable the filter function accept is $content. I need to run custom routines on the content of the page or post. The routines for the pages *are not* the same as the routines for the posts. My function looks like this:
function autonomyandlife__filter__the_content__pageinate($content)
{
... do stuff here ...
}
add_filter(
'content_save_pre',
'autonomyandlife__filter__the_content__pageinate');