Post_Actions::get_post_update_links( WP_Post $post )
Returns the action links for a post
Contents
Parameters
- $post
-
(WP_Post) (Required) The post to get the action links for.
Return
(TECEvents_ProCustom_TablesV1Updatesarray<string,string>) An map of action links.
Source
File: src/Events_Pro/Custom_Tables/V1/Updates/Post_Actions.php
public function get_post_update_links( WP_Post $post ): array {
if ( $post->post_type !== 'tribe_events' ) {
return [];
}
if ( ! $this->context->is( 'event_manager' ) ) {
return [];
}
if ( ! isset( $post->_tec_occurrence ) ) {
return [];
}
$occurrence = $post->_tec_occurrence;
return $this->get_occurrence_action_links( $occurrence );
}
Changelog
| Version | Description |
|---|---|
| 6.0.1 | Introduced. |