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