It has just been brought to my attention that it doesn’t work. This is what I have, it shows both on the front end and backend but when I view the resume there is nothing. This is the code I have:
add_filter( 'submit_resume_form_fields', 'custom_submit_resume_form_fields' );
function custom_submit_resume_form_fields( $fields ) {
$fields['resume_fields']['job_salary'] = array(
'label' => __( 'Are You Willing To Relocate?', 'job_manager' ),
'type' => 'select',
'options' => array(key => yes,
key2 => no,),
'placeholder' => '',
'description' => '',
'priority' => 999
);
// And return the modified fields
return $fields;
}
add_action( 'resume_manager_update_resume_data', 'resume_add_fields_save', 10, 2 );
function resume_add_fields_save( $resume_id, $values ) {
update_post_meta( $resume_id, '_job_salary', $values['resume_fields']['job_salary'] );
}
add_filter( 'resume_manager_resume_fields', 'custom_resume_manager_resume_fields' );
function custom_resume_manager_resume_fields( $fields ) {
$fields['_job_salary'] = array(
'label' => __( 'Are You Willing To Relocate?', 'job_manager' ),
'type' => 'select',
'options' => array(key => yes,
key2 => no,),
'placeholder' => '',
'description' => '',
'priority' => 999
);
return $fields;
}
Please HELP!! Thanks in advance.