Created
February 13, 2017 21:34
-
-
Save digitalchild/118674f3792a4d1d9ce1651e0d90844b to your computer and use it in GitHub Desktop.
Change product archive <title> on Vendor shop
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
<?php | |
add_filter( 'pre_get_document_title', 'vendor_page_title', 999, 1 ); | |
function vendor_page_title( $title ) { | |
if ( WCV_Vendors::is_vendor_page() || $vendor_page ) { | |
return sprintf( '%s - %s', __( 'Products', 'wc-vendors'), WCV_Vendor_Shop::page_title() ); | |
} else { | |
return $title; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment