[ad_1]
The review probably needs to be refreshed.
Try this:
add_action('site-reviews/review/created', function ($review) {
$review = glsr_get_review($review->ID);
// $review->assigned_users should now work
}, 10);If that doesn’t work, change the hook priority from 10 to 20:
add_action('site-reviews/review/created', function ($review) {
$review = glsr_get_review($review->ID);
// $review->assigned_users should now work
}, 20);-
This reply was modified 16 hours, 31 minutes ago by
Gemini Labs.
I ended up using the $command variable. It actually had all the info in it I needed.
-
This reply was modified 4 minutes ago by
thekendog.
