Created
January 17, 2019 12:13
-
-
Save emamut/c7d482dec164b078215940f107dc92c2 to your computer and use it in GitHub Desktop.
WP Resume Manager issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname( __FILE__ ) . '/helpers/resume-manager-extra.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'submit_resume_form_fields', 'custom_submit_resume_form_fields' ); | |
function custom_submit_resume_form_fields( $fields ) | |
{ | |
$fields['resume_fields']['candidate_name']['label'] = "Nombre Completo"; | |
$fields['resume_fields']['candidate_name']['placeholder'] = "Carlos Luis Vera Estrada"; | |
$fields['resume_fields']['candidate_email']['label'] = "Correo Electrónico"; | |
$fields['resume_fields']['candidate_email']['placeholder'] = "[email protected]"; | |
$fields['resume_fields']['candidate_location']['label'] = "Residencia"; | |
$fields['resume_fields']['candidate_location']['placeholder'] = "Guayaquil, Ecuador"; | |
$fields['resume_fields']['candidate_education']['label'] = "Formación Académica"; | |
$fields['resume_fields']['candidate_experience']['label'] = "Experiencia Profesional"; | |
$fields['resume_fields']['candidate_photo']['required'] = true; | |
$fields['resume_fields']['candidate_experience']['required'] = true; | |
$fields['resume_fields']['candidate_education']['required'] = true; | |
$fields['resume_fields']['resume_content']['required'] = false; | |
$fields['resume_fields']['resume_file']['label'] = "Hoja de Vida"; | |
$fields['resume_fields']['candidate_experience']['fields']['job_title']['label'] = 'Cargo'; | |
$fields['resume_fields']['candidate_experience']['fields']['date']['label'] = 'Fecha de inicio'; | |
$fields['resume_fields']['candidate_education']['fields']['date']['label'] = 'Fecha de inicio'; | |
return $fields; | |
} | |
add_filter( 'submit_resume_form_fields', 'remove_submit_resume_form_fields' ); | |
function remove_submit_resume_form_fields( $fields ) | |
{ | |
unset( $fields['resume_fields']['candidate_title'] ); | |
unset( $fields['resume_fields']['candidate_video'] ); | |
unset( $fields['resume_fields']['links'] ); | |
// unset( $fields['resume_fields']['resume_content'] ); | |
return $fields; | |
} | |
add_filter( 'resume_manager_resume_education_fields', 'wpjms_admin_resume_form_fields' ); | |
function wpjms_admin_resume_form_fields( $fields ) | |
{ | |
$fields['candidate_phone'] = array( | |
'label' => __( 'Teléfono Convencional', 'job_manager' ), | |
'type' => 'text', | |
'placeholder' => '+59340000000', | |
'description' => '', | |
'priority' => 2 | |
); | |
$fields['candidate_cellphone'] = array( | |
'label' => __( 'Teléfono Celular', 'job_manager' ), | |
'type' => 'text', | |
'placeholder' => '+593999999999', | |
'description' => '', | |
'priority' => 2 | |
); | |
return $fields; | |
} | |
add_filter( 'submit_resume_form_fields', 'wpjms_frontend_resume_form_fields' ); | |
function wpjms_frontend_resume_form_fields( $fields ) | |
{ | |
$fields['resume_fields']['candidate_phone'] = array( | |
'label' => __( 'Teléfono Convencional', 'job_manager' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '+59340000000', | |
'priority' => 2 | |
); | |
$fields['resume_fields']['candidate_cellphone'] = array( | |
'label' => __( 'Teléfono Celular', 'job_manager' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => '+593999999999', | |
'priority' => 2 | |
); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment