APP_Report_Factory::make( array $comment, array $args = array() )

Inserts a new comment as a report comment type and retrieves the new ID


Package


    Description Description


    Parameters Parameters

    $comment

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


    Top ↑

    Return Return

    (int) The report id


    Premium WordPress Apps

    Top ↑

    User Contributed Notes User Contributed Notes

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