Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created December 5, 2018 07:27
Show Gist options
  • Save yousufansa/46b295b5b2e48110fd2b6ce6e67ad04f to your computer and use it in GitHub Desktop.
Save yousufansa/46b295b5b2e48110fd2b6ce6e67ad04f to your computer and use it in GitHub Desktop.
Jobhunt - Change the label & placeholder of Job Type in Job Submit Form
if ( ! function_exists( 'jh_child_custom_function_init' ) ) {
function jh_child_custom_function_init() {
add_filter('submit_job_form_fields' , 'jobhunt_child_custom_submit_job_form_fields');
}
}
add_action( 'init', 'jh_child_custom_function_init' );
if ( ! function_exists( 'jobhunt_child_custom_submit_job_form_fields' ) ) {
function jobhunt_child_custom_submit_job_form_fields ($fields) {
$fields['job']['job_type']['label'] = esc_html__( 'News Paper', 'jobhunt' );
$fields['job']['job_type']['placeholder'] = esc_html__( 'Choose a Newspaper…', 'jobhunt' );
return $fields;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment