LLMS_Post_Relationships::__construct()

Constructor.


Return Return

(void)


Top ↑

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' ) );

	}

Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.