説明
プラグインやテーマの管理ページを作成する際など、ユーザのレベルと権限を確認することがある。ここでは、権限グループ別のレベルと権限の有無を整理してみた。 WordPress 3.1の権限グループ別の所有権限は次の通り。権限グループ | 管理者 administrator | 編集者 editor | 投稿者 author | 寄稿者 contributor | 購読者 subscriber | |
レベル | 10 | 7 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|
テーマの変更 | 'switch_themes' | ○ | ||||
テーマの編集 | 'edit_themes' | ○ | ||||
プラグインの有効化 | 'activate_plugins' | ○ | ||||
プラグインの編集 | 'edit_plugins' | ○ | ||||
ユーザーの編集 | 'edit_users' | ○ | ||||
ファイルの編集 | 'edit_files' | ○ | ||||
設定の管理 | 'manage_options' | ○ | ||||
インポート | 'import' | ○ | ||||
コメントの承認 | 'moderate_comments' | ○ | ○ | |||
カテゴリーの管理 | 'manage_categories' | ○ | ○ | |||
リンクの管理 | 'manage_links' | ○ | ○ | |||
フィルターなしのHTML | 'unfiltered_html' | ○ | ○ | |||
他のユーザの記事の編集 | 'edit_others_posts' | ○ | ○ | |||
ページの編集 | 'edit_pages' | ○ | ○ | |||
投稿された記事の編集 | 'edit_published_posts' | ○ | ○ | ○ | ||
ファイルアップロード | 'upload_files' | ○ | ○ | ○ | ||
記事の投稿 | 'publish_posts' | ○ | ○ | ○ | ||
記事の編集 | 'edit_post' | ○ | ○ | ○ | ○ | |
閲覧 | 'read' | ○ | ○ | ○ | ○ | ○ |
最終更新 : 2024年04月24日 00:00
関連
お勧め
is_home(2018年5月27日 更新)
bool is_home( )
要求されているページが、ホーム(トップ)ページか調べる。
update_comment_meta(2014年3月9日 更新)
bool update_comment_meta( int $comment_id, string $meta_key, mixed $meta_value [ , mixed $prev_value = '' ] )
コメントメタ情報の値を更新する。
wp_robots_noindex(2021年3月13日 更新)
array wp_robots_noindex( array $robots )
robotsメタ要素のcontent属性にnoindexを適用する。
is_taxonomy_hierarchical(2018年5月27日 更新)
bool is_taxonomy_hierarchical( string $taxonomy )
タクソノミーに階層(親子)関係があるか調べる。
get_comment_pages_count(2015年12月16日 更新)
int get_comment_pages_count( [ array $comments = null [ , int $per_page = null [ , bool $threaded = null ] ] ] )
コメントページ数を取得する。