Created
December 5, 2018 07:27
-
-
Save yousufansa/46b295b5b2e48110fd2b6ce6e67ad04f to your computer and use it in GitHub Desktop.
Jobhunt - Change the label & placeholder of Job Type in Job Submit Form
This file contains hidden or 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
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