The WPSEO plugin by Yoast has a filter for the title: ‘wpseo_title’. You’ll need to add something like this:
add_filter('wpseo_title', 'filter_product_wpseo_title');
function filter_product_wpseo_title($title) {
if( is_singular( 'product') ) {
$title = //your code
}
return $title;
}
More info at the WordPress SEO API Docs page.
Related Posts:
- SEO meta description and title tag Yoast SEO
- Why doesn’t YoastSEO allow me to set the title/description for the home page? [closed]
- How to Change The Title in WordPress For SEO
- Where does Yoast SEO plugin sets the site/page title?
- Double bar “|” in title (By WP SEO Yoast?) [closed]
- Reorder title tag and description tag with wpseo_title and wpseo_metadesc
- How can I remove an unwanted character from the main page’s title?
- Why I can not modify the appereance of my title web site in google? [closed]
- Two title tags in my header
- How can I add title attributes to next and previous post link functions?
- Problem in wordpress with “-“
- order by second word in title?
- How to add subscript and superscript in WordPress page titles
- add_theme_support( ‘title-tag’ ) in conflict with custom titles function
- the_title filter applying to menu items
- Modify page title format (when using title-tag)
- Fill post titles from post content?
- Empty title on front page/Home
- REQUIRED: The theme must not used the tags. | REQUIRED: The theme must not call to wp_title()
- Changing “Enter title here” based on post format
- How to get page’s ID if I know the title only?
- WordPress i18n-friendly preg_replace post title
- How to make a H1 different then the Title?
- How to set custom title of custom page template?
- How do I edit the tag without using the deprecated `wp_title()` function?
- Change Default Custom Fields Metabox Name
- Display post title on individual image attachment page
- Include category title in wp_title
- Automatically add title attribute to links in WordPress
- Get wp_title() from page ID into a variable
- How can i remove JUST the title tag from wp_head() function?
- Custom Post Type Title Placeholder [duplicate]
- Site title not showing. What can I do?
- Remove site name from tag
- Yoast SEO breadcrumbs: how to create a filter that uses the url slug for breadcrumb titles
- What code do you use to generate the text to go into the HTML title tag?
- Multiple Conditions for Child Page Title
- How come my first blog post and my home page have the same title?
- Where do I change the ACTUAL title tag that is set in the header.php
- Change title tag dynamically or within plugin?
- Get title of page from URL
- Remove site name from title post
- Hide price & title in store thumbnail dispay? [closed]
- Change all Post titles into [Title Case] format
- How to modify a title tag in genesis?
- How do I set the blog name?
- How to Change Title Attribute to be different from Page title
- How to sanitize post title with commas
- Add anchor text to php
- How to echo a different title to the page if it’s opened on an android mobile phone
- Adding schema.org itemprop to WP4.1 Title Tag
- Remove post title
- Set max title length – similar to excerpt length for outside of single.php
- How to edit title on Edit post pages?
- How do I shorten the title lenghs with Elementor theme? [closed]
- Automatically add words if duplicate post titles
- Remove Title of youtube video
- How to Customize “WordPress > Error” Text in Titlebar?
- How to insert icon in site title
- How to add H4 tag to the_content filter (after content)?
- How can I automatically insert the page content as the title?
- HeadSpace2 double title on homepage
- Changing title & add Breadcrumbs
- Page title is showing category name as well in the google search results
- change title separator
- Sanitize the output of the_title() or the_title_attribute() to remove whitespace
- Change page title dynamically before header is rendered
- Modify conditional titles to include parent and page number
- Blog Title not showing up on main Blog page
- Why is a category/ tag name prefixed to title of every page?
- How to override the title tag for woocommerce endpoints?
- For better digital journalism, how to store a second title and excerpt?
- After I set the title, it over-wrote all the titles for the individual pages
- Cannot use ‘CSS’ in post title
- Replace text in the Title
- Wrap the_title_attribute in a H2 within a Conditional Tag?
- ASCII titles with Yoast SEO plugin
- How to echo all the_title() without text after last “-“
- set title attribute in wp_get_attachment_image()
- Show Sitename on Yoast SEO Title tag [closed]
- Title tags show twice
- Setting page title and keywords from PHP code
- Anyway to specify what should appear in in .php file?
- How to solve the site tag being displayed twice?
- How can I override the post title when a post is set to sticky? [closed]
- disallow publish posts with special title
- Print post title with markup
- How to get current page title inside a page’s template
- Permalink and ACF field
- Remove tagline from the HTML on the home page without plugin?
- Homepage meta title and description not showing in search engines?
- How to remove Title and CSS styling of title from particular page
- Delete a repeated part of post title in WordPress
- Prefix the title tag, if IP address is the dev server
- how to set alt & title for featured image get_the_post_thumbnail
- Yoast taking over my WordPress title tag [closed]
- How to add publish date in the title
- How to put post title or keyphrase in content on different places automatically?
- Change meta data of pdf file
- How come I get internal server error even with try catch for get_the_title in functions.php?