It sounds like you are asking how to modify the title of a review when it is submitted. Is that correct? If so, please see the Hooks help page which explains how to modify the submitted review values before the review is created.
Hi there,
Many thank for your plugin, it works like a charm !!
After looking to the hooks & FAQ, I achieved to set the title to “Review_” but now I would like to add the review_id to it.
My goals is that all review title will have the same structure “Review_”+review_id
Thanks in advance for you time
You can use the site-reviews/review/created hook which provides the created review, and use the review ID to update the review post title.
wp_update_post([
'ID' => $review->ID,
'post_title' => 'Review_'.$review->ID,
]);
If you do this, you will probably also want to use the hide option on the form shortcode to hide the title field.
BOOM & Wahou !!!
Excellent, it works perfectly
Many thanks
In v5.11.0 you will also be able to do this:
glsr_update_review($review->ID, [
'title' => 'Review_'.$review->ID,
]);