Created
March 29, 2016 13:58
-
-
Save SirDarcanos/8ebc52411145f8a7a58b to your computer and use it in GitHub Desktop.
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
/** | |
* 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