APP_Review_Factory
Reviews factory class
Package
Description Description
Methods Methods
- _get_reviews — Helper method to retrieve reviews comment types
- create_post_review — Creates and retrives an new post review object
- create_user_review — Creates a new user review object
- get_post_reviews — Retrieves the reviews collection for a specific post
- get_reviews — Retrieve a list of reviews
- get_user_authored_reviews — Retrieves the authored reviews collection for a specific user
- get_user_reviews — Retrieves the reviews collection for a specific user
- make — Inserts a new comment as a review comment type and retrieves the new ID
- retrieve — Retrieves an existing review
- set_post_review — Sets an existing WP comment as a review object and retrieves it
- set_user_review — Sets an existing WP_Comment_Query array as a review object and retrieves it
- update_post_reviews — Adds/removes a review on a post review collection.
- update_reviews — Main method to add/remove a review on a user/post review collection.
- update_user_authored_reviews — Adds/removes a review on a user review collection.
- update_user_reviews — Adds/removes a review on a user review collection.