APP_Report_Factory::set_post_report( int $comment_id, array $args = array() )

Sets an existing WP comment as a report object and retrieves it


Package


    Description Description


    Parameters Parameters

    $comment_id

    (int) (Required) The WordPress comment ID

    $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()


    Top ↑

    Return Return

    (object) The report object


    Premium WordPress Apps

    Top ↑

    User Contributed Notes User Contributed Notes

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