tribe_has_linked_posts_by_post_type( int $post_id, string $post_type )

Returns whether or not there are linked posts of the specified post type


Parameters #

$post_id

(int) (Required) Post ID of the object

$post_type

(string) (Required) Post type of linked posts to look for


Top ↑

Return #

(boolean)


Top ↑

Source #

File: src/functions/advanced-functions/linked-posts.php

	function tribe_has_linked_posts_by_post_type( $post_id, $post_type ) {
		return Tribe__Events__Linked_Posts::instance()->has_linked_posts_by_post_type( $post_id, $post_type );
	}

Top ↑

Changelog #

Changelog
Version Description
4.2 Introduced.