You can use the “site-reviews/get/review” hook to change the profile image when the reviews are fetched:
add_filter( 'site-reviews/get/review', function( $review ) {
// do something, e.g. change the $review->avatar to something else
// the review $post->ID is $review->ID and the $post->post_author is $review->user_id
return $review;
});
-
This reply was modified 6 years, 6 months ago by Gemini Labs.
You can also use the ‘site-reviews/local/review’ filter hook to change the avatar value when a review is created:
add_filter( 'site-reviews/local/review', function( array $review ) {
// change the $review['avatar'] here
return $review;
});
I want to use ultimate member profile image instead of gravatar for site reviews. Is it possible to replace it using your provided hook?
Is there a way to allow reviewer to upload their image?
Honestly, the set of features of this plugin is excellent and the only thing preventing me to switch to it is inability to:
1. let reviewer upload their image.
2. additional fields e.g. Company Name, Location(City & State)
Would greatly appreciate it if these are solvable!
@michaelezra
1. It’s not possible in v2 of Site Reviews to upload an image because it would require a rewrite of the plugin’s javascript that handles review submissions. Also IE9 support would have to be dropped.
2. While it is technically possible to add your own fields using a custom submission form and using some of the internal filter hooks to perform your own validation and saving the custom fields to the review, it is not officially supported in the current version.
Thank you for such prompt response!
I will keep an eye on your plugin. If you get to address these two points fully, please update this thread (I will get auto-notified). Thank you!