APP_Report_Handle

Helper class that extends WP comment hooks as meanignful reports hooks


Package


Description Description


Top ↑

Methods Methods

  • ajax_add_report — Handles adding reports via ajax
  • ajax_delete_report — Handles removing reports via ajax
  • comment_status_transition — Provides action hooks on reports status transitions
  • edit_comment — Updates any meta data on edited reports
  • handle_report — Handles report
  • init — Initializes the class by setting the comment type and some important WP comment hooks
  • insert_comment — Extends wp_insert_comment() by providing a report filter used to store additional data.
  • redirect — Provides a new hook to allow redirecting the user
  • validate_comment — Validates a report 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
Premium WordPress Apps

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.