Skip to content

Instantly share code, notes, and snippets.

@SiR-DanieL
Created March 29, 2016 13:58
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 SiR-DanieL/8ebc52411145f8a7a58b to your computer and use it in GitHub Desktop.
Save SiR-DanieL/8ebc52411145f8a7a58b to your computer and use it in GitHub Desktop.
/**
* Change the Shop archive page title.
* @param string $title
* @return string
*/
function wc_custom_shop_archive_title( $title ) {
if ( is_shop() && isset( $title['title'] ) ) {
$title['title'] = 'My Title';
}
return $title;
}
add_filter( 'document_title_parts', 'wc_custom_shop_archive_title' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment