Skip to content

Instantly share code, notes, and snippets.

@danjjohnson
Created August 26, 2014 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danjjohnson/90ff2b8241557a5ea148 to your computer and use it in GitHub Desktop.
Save danjjohnson/90ff2b8241557a5ea148 to your computer and use it in GitHub Desktop.
Sensei - Change Course Category Archive title
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