skip to Main Content

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?

2

Answers


  1. 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;
    }
    }
    
    Login or Signup to reply.
  2. You can use “Secondary title plugin”. Instructions on link below secondary title plugin

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search