Tutorial: Enable comments for resumes

Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.

Comments on resume posts are disabled by default. They can be enabled with a small snippet of code being added to your theme functions.php file, or even better, with a plugin such as Code Snippets.

// Add comment support to the post type
add_filter( 'register_post_type_resume', 'register_post_type_resume_enable_comments' );

function register_post_type_resume_enable_comments( $post_type ) {
	$post_type['supports'][] = 'comments';
	return $post_type;
}

// Make comments open by default for new resumes
add_filter( 'submit_resume_form_save_resume_data', 'custom_submit_resume_form_save_resume_data' );

function custom_submit_resume_form_save_resume_data( $data ) {
	$data['comment_status'] = 'open';
	return $data;
}
Resume Manager Documentation