Created
August 26, 2014 15:44
-
-
Save danjjohnson/90ff2b8241557a5ea148 to your computer and use it in GitHub Desktop.
Sensei - Change Course Category Archive title
This file contains 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
add_filter( 'course_category_archive_title', 'custom_course_category_title', 10 ); | |
function custom_course_category_title( $title ) { | |
global $wp_query; | |
$taxonomy_obj = $wp_query->get_queried_object(); | |
$title = sprintf( __( 'Course Category: %s', 'woothemes-sensei' ), $taxonomy_obj->name ); | |
$title = '<header class="archive-header"><h1>' . $title . '</h1></header>'; | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment