bbp_delete_user_options( $user_id )
Delete default user options
Description Description
Hooked to bbp_uninstall, it is only called once when bbPress is uninstalled. This is destructive, so existing bbPress user options will be destroyed.
Source Source
File: includes/users/options.php
function bbp_delete_user_options( $user_id = 0 ) { // Validate user id $user_id = bbp_get_user_id( $user_id ); if ( empty( $user_id ) ) { return; } // Add default options foreach ( array_keys( bbp_get_default_user_options() ) as $key ) { delete_user_option( $user_id, $key ); } // Allow previously activated plugins to append their own options. do_action( 'bbp_delete_user_options', $user_id ); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |