Tribe__Events__Aggregator__Record__Abstract::last_child()
Returns this record last child record or the record itself if no children are found.
Return
Source
File: src/Tribe/Aggregator/Record/Abstract.php
public function last_child() {
$last_child_post = $this->get_last_child_post();
return $last_child_post && $last_child_post instanceof WP_Post
? Tribe__Events__Aggregator__Records::instance()->get_by_post_id( $last_child_post->ID )
: $this;
}
Changelog
| Version | Description |
|---|---|
| 4.6.15 | Introduced. |