LLMS_Post_Relationships
Hooks and actions related to post relationships
Description Description
Source Source
File: includes/class.llms.post.relationships.php
Changelog Changelog
Version | Description |
---|---|
4.15.0 | Delete access plans related to courses/memberships on their deletion. |
3.37.8 | Delete student quiz attempts when a quiz is deleted. |
3.24.0 | Unknown |
3.16.12 | Introduced. |
Methods Methods
- __construct
- delete_relationships — Delete / Trash posts related to the deleted post
- delete_table_records — Delete records from a table that are related to the deleted post.
- delete_wp_posts — Delete or trash WP Posts related to the deleted post.
- get_post_types — Get a list of post types with relationships that should be checked
- get_related_posts — Retrieve an array of post ids related to the deleted post by post type and meta key
- get_relationships — Retrieve filtered LifterLMS post relationships array
- maybe_update_relationships — Check relationships and delete / update related posts when a post is deleted Called on `delete_post` hook (before a post is deleted)
- unset_relationships — Unsets relationship data from post_meta when a post is deleted