APP_Review_Factory::create_post_review( object $comment, int $rating, array $meta = array() )
Creates and retrives an new post review object
Package
Description Description
Parameters Parameters
- $comment
(object) (Required) The WP_Comment_Query array that will be used as the review object
- $rating
(int) (Required) The review rating
- $meta
(array) (Optional) (optional) Additional meta to be added to the review object.
Default value: array()
Return Return
(object) The review object