LLMS_Post_Relationships::__construct()
Constructor.
Contents
Return Return
(void)
Source Source
File: includes/class.llms.post.relationships.php
public function __construct() { add_action( 'delete_post', array( $this, 'maybe_update_relationships' ) ); add_action( 'pre_delete_post', array( __CLASS__, 'maybe_prevent_product_deletion' ), 10, 2 ); add_action( 'before_delete_post', array( __CLASS__, 'maybe_clean_earned_engagments_related_user_post_meta' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Added hook to cleanup user post meta data when awarded certs and achievements are deleted. |
5.4.0 | Prevent course/membership with active subscriptions deletion. |
3.16.12 | Introduced. |