Add asterisk to star ratings if required checkbox is enabled
This commit is contained in:
parent
1d216d3a98
commit
4756d4c911
|
@ -121,7 +121,7 @@ if ( ! comments_open() ) {
|
|||
}
|
||||
|
||||
if ( wc_review_ratings_enabled() ) {
|
||||
$comment_form['comment_field'] = '<div class="comment-form-rating"><label for="rating">' . esc_html__( 'Your rating', 'woocommerce' ) . '</label><select name="rating" id="rating" required>
|
||||
$comment_form['comment_field'] = '<div class="comment-form-rating"><label for="rating">' . esc_html__( 'Your rating', 'woocommerce' ) . ( wc_review_ratings_required() ? ' <span class="required">*</span>' : '' ) . '</label><select name="rating" id="rating" required>
|
||||
<option value="">' . esc_html__( 'Rate…', 'woocommerce' ) . '</option>
|
||||
<option value="5">' . esc_html__( 'Perfect', 'woocommerce' ) . '</option>
|
||||
<option value="4">' . esc_html__( 'Good', 'woocommerce' ) . '</option>
|
||||
|
|
Loading…
Reference in New Issue