AnsPress_Reputation_Hooks::delete_user( integer $user_id )
Description #
Delete all reputation of user when user get deleted.
Parameters #
- $user_idinteger (Required) User ID.
Source #
File: addons/free/reputation.php
public static function delete_user( $user_id ) { global $wpdb; $delete = $wpdb->delete( $wpdb->ap_reputations, [ 'repu_user_id' => $user_id ], [ '%d' ] ); // WPCS: db call okay, db cache okay. if ( false !== $delete ) { do_action( 'ap_bulk_delete_reputations_of_user', $user_id ); } }
Expand full source code Collapse full source code View on GitHub: addons/free/reputation.php:358
Add your comment