Snippet: Alter WooCommerce Single Product Page Header Title
Important:Since Total 5.4.6 you can now change this via the Customizer.
// Displays product title for the page header title instead of "Products"
function myprefix_woo_single_title( $title ) {
if ( function_exists( 'is_product' ) && is_product() ) {
$title = single_post_title( '', false );
}
return $title;
}
add_filter( 'wpex_title', 'myprefix_woo_single_title', 99 );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend WPCode)