APP_Report_Factory::set_user_report( int $recipient_id, int $comment_id, array $args = array() )
Sets an existing WP_Comment_Query array as a report object and retrieves it
Package
Description Description
Parameters Parameters
- $recipient_id
(int) (Required) The user ID that is receiving the report
- $comment_id
(int) (Required) The WordPress comment ID
- $args
(array) (Optional) (optional) Additional optional params to be passed to the report object. Expects user (user_meta) or post meta (post_meta) as associative arrays. Meta passed trough 'user_meta' is stored in the reporter user meta and the 'post_meta' in the post meta for the post being reported
Default value: array()
Return Return
(object) The report object