Created
June 13, 2019 05:29
-
-
Save yousufansa/9672f31b975d07b9bd0970cb6bad9517 to your computer and use it in GitHub Desktop.
Jobhunt - Job Archive Page Header Subtitle Add/Change
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_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