Post_Actions::get_post_update_links( WP_Post $post )

Returns the action links for a post


Parameters

$post

(WP_Post) (Required) The post to get the action links for.


Top ↑

Return

(TECEvents_ProCustom_TablesV1Updatesarray<string,string>) An map of action links.


Top ↑

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 );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.1 Introduced.