APP_Report_Factory::create_post_report( object $comment, array $args = array() )
Creates and retrives an new post report object
Package
Description Description
Parameters Parameters
- $comment
(object) (Required) The WP_Comment_Query array that will be used as the report object
- $args
(array) (Optional) (optional) Additional optional params to be passed to the report object. Expects user ($args['user_meta']) or post meta ($args['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