Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Post_Relationships::get_related_posts( int $post_id, string $post_type, string $meta_key )
Retrieve an array of post ids related to the deleted post by post type and meta key
Description Description
Parameters Parameters
- $post_id
-
(Required) WP Post ID of the deleted post.
- $post_type
-
(Required) WP Post type of the related post(s).
- $meta_key
-
(Required) meta_key to check for relations by.
Return Return
(array)
Source Source
File: includes/class.llms.post.relationships.php
Changelog Changelog
Version | Description |
---|---|
3.16.12 | Introduced. |