コード例 #1
0
function bp_blogs_remove_data($user_id)
{
    if (!is_multisite()) {
        return false;
    }
    do_action('bp_blogs_before_remove_data', $user_id);
    // If this is regular blog, delete all data for that blog.
    BP_Blogs_Blog::delete_blogs_for_user($user_id);
    do_action('bp_blogs_remove_data', $user_id);
}
コード例 #2
0
ファイル: bp-blogs.php プロジェクト: n-sane/zaroka
function bp_blogs_remove_data( $user_id ) {
	if ( !bp_core_is_multisite() )
		return false;

	/* If this is regular blog, delete all data for that blog. */
	BP_Blogs_Blog::delete_blogs_for_user( $user_id );

	do_action( 'bp_blogs_remove_data', $user_id );
}
コード例 #3
0
/**
 * Remove all blog associations for a given user.
 *
 * @param int $user_id ID whose blog data should be removed.
 * @return bool|null Returns false on failure.
 */
function bp_blogs_remove_data($user_id)
{
    if (!is_multisite()) {
        return false;
    }
    /**
     * Fires before all blog associations are removed for a given user.
     *
     * @since BuddyPress (1.5.0)
     *
     * @param int $user_id ID of the user whose blog associations are being removed.
     */
    do_action('bp_blogs_before_remove_data', $user_id);
    // If this is regular blog, delete all data for that blog.
    BP_Blogs_Blog::delete_blogs_for_user($user_id);
    /**
     * Fires after all blog associations are removed for a given user.
     *
     * @since BuddyPress (1.0.0)
     *
     * @param int $user_id ID of the user whose blog associations were removed.
     */
    do_action('bp_blogs_remove_data', $user_id);
}
コード例 #4
0
ファイル: bp-blogs.php プロジェクト: alvaropereyra/shrekcms
function bp_blogs_remove_data($user_id)
{
    /* If this is regular blog, delete all data for that blog. */
    BP_Blogs_Blog::delete_blogs_for_user($user_id);
    BP_Blogs_Post::delete_posts_for_user($user_id);
    BP_Blogs_Comment::delete_comments_for_user($user_id);
    do_action('bp_blogs_remove_data', $user_id);
}