Last active
April 8, 2020 22:31
-
-
Save rafaehlers/e9a7af1de188ffd22b7fa1632e0ca3da to your computer and use it in GitHub Desktop.
Ratings and Reviews extension - Remove all fields from the review form, leaving only the thumbs/stars
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // DO NOT COPY THIS LINE | |
add_filter( 'comment_form_field_gv_review_title', '__return_empty_string' ); | |
add_filter( 'gv_ratings_reviews_review_form_settings', 'gv_modify_review_form_labels',10,1); | |
function gv_modify_review_form_labels($defaults){ | |
$defaults['author'] = ''; | |
$defaults['email'] = ''; | |
$defaults['url'] = ''; | |
$defaults['comment_field'] = ''; | |
$defaults['must_log_in'] = ''; | |
$defaults['logged_in_as'] = ''; | |
$defaults['comment_notes_before'] = ''; | |
$defaults['comment_notes_after'] = ''; | |
$defaults['title_reply'] = ''; | |
$defaults['title_reply_to'] = ''; | |
$defaults['cancel_reply_link'] = ''; | |
return $defaults; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment