• Hi I am very very beginner to php… what function should I sude to change this (from /woocommerce/templates/single-product-reviews)

    $comment_form = array(
    						'title_reply'          => have_comments() ? __( 'Add a review', 'woocommerce' ) : __( 'Be the first to review', 'woocommerce' ) . ' “' . get_the_title() . '”',
    						'title_reply_to'       => __( 'Leave a Reply to %s', 'woocommerce' ),
    						'comment_notes_before' => '',
    						'comment_notes_after'  => '',
    						'fields'               => array(
    							'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name', 'woocommerce' ) . ' <span class="required">*</span></label> ' .
    							            '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" aria-required="true" /></p>',
    							'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email', 'woocommerce' ) . ' <span class="required">*</span></label> ' .
    							            '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30" aria-required="true" /></p>',
    						),
    						'label_submit'  => __( 'Submit', 'woocommerce' ),
    						'logged_in_as'  => '',
    						'comment_field' => ''
    					);

    to this :

    $comment_form = array(
    	'title_reply'          => have_comments() ? __( 'Add a review', 'woocommerce' ) : __( 'Be the first to review', 'woocommerce' ) ,
    	'title_reply_to'       => __( 'Leave a Reply to %s', 'woocommerce' ),
    	'comment_notes_before' => '',
    	'comment_notes_after'  => '',
    	'fields'               => array(
    		'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name', 'woocommerce' ) . ' <span class="required">*</span></label> ' .
    		            '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" aria-required="true" /></p>',
    		'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email', 'woocommerce' ) . ' <span class="required">*</span></label> ' .
    		            '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30" aria-required="true" /></p>',
    	),
    	'label_submit'  => __( 'Submit', 'woocommerce' ),
    	'logged_in_as'  => '',
    	'comment_field' => ''
    );

    Basically just one line changed

    thank you

    https://wordpress.org/plugins/woocommerce/

  • The topic ‘Remove the product title in the review tab’ is closed to new replies.