public/wordpress/wp-content/plugins/wishlist-member-addon-for-wp-courseware/wp-courseware-wishlist-member.php
/**
	 * Function called to attach hooks for handling when a user is updated or created.
	 */
Function called to attach hooks for handling when a user is updated or created.
Function called to attach hooks for handling when a user is updated or created .
protected function attach_updateUserCourseAccess()
	{
		add_action('wishlistmember_add_user_levels', 		array($this, 'handle_updateUserCourseAccess'), 10, 2);
		add_action('wishlistmember_remove_user_levels', 	array($this, 'handle_updateUserCourseAccess'), 10, 2);
		add_action('wishlistmember_unapprove_user_levels', 	array($this, 'handle_updateUserCourseAccess'), 10, 2);
		add_action('wishlistmember_approve_user_levels', 	array($this, 'handle_updateUserCourseAccess'), 10, 2);
		add_action('wishlistmember_unconfirm_user_levels', 	array($this, 'handle_updateUserCourseAccess'), 10, 2);
		add_action('wishlistmember_confirm_user_levels', 	array($this, 'handle_updateUserCourseAccess'), 10, 2);
		add_action('wishlistmember_cancel_user_levels', 	array($this, 'handle_updateUserCourseAccess'), 10, 2);
		add_action('wishlistmember_uncancel_user_levels', 	array($this, 'handle_updateUserCourseAccess'), 10, 2);
	}
protected function attach_updateUserCourseAccess ( ) { add_action ( 'wishlistmember_add_user_levels' , array ( $ this , 'handle_updateUserCourseAccess' ) , 10 , 2 ) ; add_action ( 'wishlistmember_remove_user_levels' , array ( $ this , 'handle_updateUserCourseAccess' ) , 10 , 2 ) ; add_action ( 'wishlistmember_unapprove_user_levels' , array ( $ this , 'handle_updateUserCourseAccess' ) , 10 , 2 ) ; add_action ( 'wishlistmember_approve_user_levels' , array ( $ this , 'handle_updateUserCourseAccess' ) , 10 , 2 ) ; add_action ( 'wishlistmember_unconfirm_user_levels' , array ( $ this , 'handle_updateUserCourseAccess' ) , 10 , 2 ) ; add_action ( 'wishlistmember_confirm_user_levels' , array ( $ this , 'handle_updateUserCourseAccess' ) , 10 , 2 ) ; add_action ( 'wishlistmember_cancel_user_levels' , array ( $ this , 'handle_updateUserCourseAccess' ) , 10 , 2 ) ; add_action ( 'wishlistmember_uncancel_user_levels' , array ( $ this , 'handle_updateUserCourseAccess' ) , 10 , 2 ) ; }
Function called to attach hooks for handling when a user is updated or created.
Function called to attach hooks for handling when a user is updated or created .
// Events called whenever the user levels are changed, which updates the user access.