tribe_link_post( int $target_post_id, int $subject_post_id )
Links two posts together
Contents
Parameters
- $target_post_id
-
(int) (Required) Post ID of post to add linked post to
- $subject_post_id
-
(int) (Required) Post ID of post to add as a linked post to the target
Return
(boolean)
Source
File: src/functions/advanced-functions/linked-posts.php
function tribe_link_post( $target_post_id, $subject_post_id ) { return Tribe__Events__Linked_Posts::instance()->link_post( $target_post_id, $subject_post_id ); }
Changelog
Version | Description |
---|---|
4.2 | Introduced. |