APP_Review_Handle
Wrapper class for hooking into WP comments object.
Package
Description Description
Methods Methods
- comment_approved — Trigger the comment status transition when reviews are approved
- comment_status_transition — Provides action hooks on reviews status transitions
- comment_unapproved — Trigger the comment status transition when reviews are unapproved
- edit_comment — Updates any meta data on edited reviews
- handle_review — Handles the posted review data.
- init — Initializes the class by setting the comment type and some important WP comment hooks
- insert_comment — Extends wp_insert_comment() by providing a review filter used to store additional data:
- redirect — Provides a new hook to allow redirecting the user after a review
- update_review_collections — Adds/deletes a review on the review collection of the parent post.
- validate_comment — Validates a review before being inserted in the DB Redirects the user to a URL referer if is exists in the $_REQUEST, otherwise, ends execution with an error