LifterLMS_REST_API::on_user_deletion( int $user_id )
When a user is deleted in WordPress, delete corresponding LifterLMS REST API data.
Parameters Parameters
- $user_id
-
(int) (Required) The ID of the just deleted WP_User.
Return Return
(void)
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. $wpdb->delete( "{$wpdb->prefix}lifterlms_api_keys", array( 'user_id' => $user_id, ), array( '%d' ) );// db-cache ok.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.25 | Introduced. |