LifterLMS_REST_API::on_user_deletion( int $user_id )

When a user is deleted in WordPress, delete corresponding LifterLMS REST API data.

Parameters Parameters


(int) (Required) The ID of the just deleted WP_User.

Top ↑

Return Return


Top ↑

Source Source

File: libraries/lifterlms-rest/class-lifterlms-rest-api.php

	public function on_user_deletion( $user_id ) {

		global $wpdb;

		// Delete user's API keys.
				'user_id' => $user_id,
			array( '%d' )
		);// db-cache ok.

Top ↑

Changelog Changelog

Version Description
1.0.0-beta.25 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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