Changeset 12605 for trunk/src/bp-blogs/bp-blogs-functions.php
- Timestamp:
- 03/29/2020 05:32:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-functions.php
r12544 r12605 1434 1434 } 1435 1435 add_action( 'wpmu_delete_user', 'bp_blogs_remove_data' ); 1436 add_action( 'delete_user', 'bp_blogs_remove_data' );1437 1436 add_action( 'bp_make_spam_user', 'bp_blogs_remove_data' ); 1437 1438 /** 1439 * Deletes user XProfile data on the 'delete_user' hook. 1440 * 1441 * @since 6.0.0 1442 * 1443 * @param int $user_id The ID of the deleted user. 1444 */ 1445 function bp_blogs_remove_data_on_delete_user( $user_id ) { 1446 if ( ! bp_remove_user_data_on_delete_user_hook( 'blogs', $user_id ) ) { 1447 return; 1448 } 1449 1450 bp_blogs_remove_data( $user_id ); 1451 } 1452 add_action( 'delete_user', 'bp_blogs_remove_data_on_delete_user' ); 1438 1453 1439 1454 /**
Note: See TracChangeset
for help on using the changeset viewer.