Issue with ‘site-reviews/review/created’ Hook | WordPress.org

[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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer