APP_Report_Factory::add_user_report( int $user_id, object $report, array $meta = array() )
Adds a new report to a user report collection
Package
Description Description
Parameters Parameters
- $user_id
(int) (Required) The user ID to assign the new report
- $report
(object) (Required) The report object being added to the collection
- $meta
(array) (Optional) (optional) Additional post meta to store in the report collection meta
Default value: array()
Return Return
(object) The updated report collection