Reputation: 13
What I want to have is that every new product will have the default title like this: shoe Size 10 Because there will be add many products everyday it would be much easier to have that as a default product title. Does someone have a code for this or can someone help me out with this?
Upvotes: 1
Views: 293
Reputation: 132
You can use "Secondary title plugin". Instructions on link below secondary title plugin
Upvotes: 1
Reputation: 413
Try This Method
add_product( 'the_title', 'product_title');
function product_title( $title, $id ) {
if ( is_shop() && get_post_type( $id ) === 'product' ) {
return ( $title);
} else {
return $title;
}
}
Upvotes: 0