Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created June 13, 2019 05:29
Show Gist options
  • Save yousufansa/9672f31b975d07b9bd0970cb6bad9517 to your computer and use it in GitHub Desktop.
Save yousufansa/9672f31b975d07b9bd0970cb6bad9517 to your computer and use it in GitHub Desktop.
Jobhunt - Job Archive Page Header Subtitle Add/Change
if ( ! function_exists( 'jh_child_custom_wpjm_page_subtitle' ) ) {
function jh_child_custom_wpjm_page_subtitle( $subtitle ) {
if( is_post_type_archive( 'job_listing' ) || is_page( jh_wpjm_get_page_id( 'jobs' ) ) ) {
$subtitle = esc_html__( 'Your Subtitle', 'jobhunt-child' );
}
return $subtitle;
}
}
add_filter( 'jobhunt_site_content_page_subtitle', 'jh_child_custom_wpjm_page_subtitle', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment