Showing message after submitted review
-
This will probably be a more complicated question. I haven’t worked with PHP in a while, and I don’t want to touch any of the files to mess it up. I have added the code for the form to disappear once it is submitted.
There are 2 scenarios:
1. When a user submits a review the form hides and a message goes in its place or shows up. Here it will thank them for their review and asks if they don’t mind sharing it on Google too.
2. ^ + Somehow to copy over the text they submitted or show them their summary so they can just copy and paste it over into Google.
I tried adding
/** * Runs after a review has been submitted in Site Reviews. * Paste this in your active theme's functions.php file. * @param \GeminiLabs\SiteReviews\Review $review * @param \GeminiLabs\SiteReviews\Commands\CreateReview $request * @return void */ add_action('site-reviews/review/created', function ($review, $request) { // do something here. }, 10, 2);
but I couldn’t figure out how to write the function or what I should even do. If you have any tips, I appreciate it in advance.
The page I need help with: [log in to see the link]
- The topic ‘Showing message after submitted review’ is closed to new replies.