- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
関数リファレンス/add new user to blog
提供: WordPress Codex 日本語版
目次
Description
Add a newly created user to the appropriate blog.
Usage
<?php add_new_user_to_blog( $user_id, $email, $meta ) ?>
Parameters
- $user_id
- (integer) (required) The new user ID
- 初期値: なし
- (string) (required) New user's email
- 初期値: なし
- $meta
- (array) (required) Sign-up meta for a user. The 'add_to_blog' and 'new_role' fields are used.
- 初期値: なし
Return Value
This function does not return a value.
Examples
Notes
- Uses remove_user_from_blog() to remove the user from the main blog.
- Uses add_user_to_blog() to add the user to the blog whose ID is given in $meta['add_to_blog'].
- Uses update_user_meta() to update the 'primary_blog' meta key.
Change Log
Source File
add_new_user_to_blog() is located in wp-includes/ms-functions.php
Related
ブログユーザー関数: add_user_to_blog(), add_new_user_to_blog(), remove_user_from_blog(), get_users_of_blog(), is_user_member_of_blog()
最新英語版: WordPress Codex » add new user to blog (最新版との差分)
関数リファレンス、テンプレートタグ目次もご覧ください。