Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created September 17, 2018 08:47
Show Gist options
  • Save yousufansa/6559f125d565577482b7a243ca98897e to your computer and use it in GitHub Desktop.
Save yousufansa/6559f125d565577482b7a243ca98897e to your computer and use it in GitHub Desktop.
Jobhunt Company Description Title & Job Listing Title
add_filter('jobhunt_company_description_title' , 'jobhunt_custom_company_description_title');
if ( ! function_exists( 'jobhunt_custom_company_description_title' ) ) {
function jobhunt_custom_company_description_title($title) {
global $post;
$post = get_post( $post );
$title = esc_html__( 'About ', 'jobhunt' ) . get_the_title();
return $title;
}
}
add_filter('jobhunt_company_job_listing_title' , 'jobhunt_custom_company_job_listing_title');
if ( ! function_exists( 'jobhunt_custom_company_job_listing_title' ) ) {
function jobhunt_custom_company_job_listing_title($title) {
global $post;
$post = get_post( $post );
$title = esc_html__( 'Jobs From ', 'jobhunt' ) . get_the_title();
return $title;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment