Tribe__Events__Aggregator__Record__Abstract::set_post( WP_post|int $post )
Sets the post associated with this record.
Contents
Parameters
- $post
-
(WP_post|int) (Required) A post object or post ID.
Source
File: src/Tribe/Aggregator/Record/Abstract.php
public function set_post( $post ) {
if ( ! $post instanceof WP_Post ) {
$post = get_post( $post );
}
$this->post = $post;
}
Changelog
| Version | Description |
|---|---|
| 4.5.11 | Introduced. |