Tribe__Events__Aggregator__Record__Abstract::get_errors( array $args = array() )
Gets errors on the record post.
Contents
Parameters
- $args
-
(array) (Optional) WP_Comment_Query arguments.
Default value: array()
Return
(@return) WP_Comment[]|int[]|int List of comments or number of found comments if $count argument is true.
Source
File: src/Tribe/Aggregator/Record/Abstract.php
public function get_errors( $args = array() ) {
$defaults = array(
'post_id' => $this->id,
'type' => Tribe__Events__Aggregator__Errors::$comment_type,
);
$args = wp_parse_args( $args, $defaults );
return get_comments( $args );
}