[wp-hackers] Specific hooks for working with custom post types?

scribu scribu at gmail.com
Sun Mar 28 15:37:09 UTC 2010


You hava an additional parameter on the save_post hook:

function save_post_callback($post_id, $post) {
if ( 'case-study' == $post->post_type {
...
}
}
add_action('save_post', 'save_post_callback', 10, 2);


-- 
http://scribu.net


More information about the wp-hackers mailing list