Thanks!, here is changed code:
function custom_submit_resume_steps( $steps ) {
unset( $steps['preview'] );
return $steps;
}
add_filter( 'submit_resume_steps', 'custom_submit_resume_steps' );
/**
* Change button text (won't work until v1.16.2)
*/
function change_preview_text() {
return __( 'Submit Resume' );
}
add_filter( 'submit_resume_form_submit_button_text', 'change_preview_text' );
function done_publish_resume( $resume_id ) {
$resume = get_post( $resume_id );
if ( in_array( $resume->post_status, array( 'preview', 'expired' ) ) ) {
// Reset expirey
delete_post_meta( $resume->ID, '_resume_expires' );
// Update resume
$update_resume = array();
$update_resume['ID'] = $resume->ID;
$update_resume['post_status'] = get_option( 'resume_manager_submission_requires_approval' ) ? 'pending' : 'publish';
$update_resume['post_date'] = current_time( 'mysql' );
$update_resume['post_date_gmt'] = current_time( 'mysql', 1 );
wp_update_post( $update_resume );
}
}
add_action( 'resume_manager_resume_submitted', 'done_publish_resume' );