Is there a filter for product title prefix?
-
I am using WooCommerce, I would like to prefix my product meta title (and description) with a custom generated string based on product categories.
I was looking at this filter:
add_filter( ‘the_seo_framework_title_from_generation’, function( $title, $args ) {
if ( is_post_type_archive( ‘my_post_type_name’ ) ) {
$title = ‘My custom title’;
}
return $title;
}, 10, 2 )What arguments are passed? Is the post_ID included? If so, I can use this filter to generate what I need.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Is there a filter for product title prefix?’ is closed to new replies.