この記事は最後に更新してから1年以上経過しています。

LevelとCapability

説明

プラグインやテーマの管理ページを作成する際など、ユーザのレベルと権限を確認することがある。ここでは、権限グループ別のレベルと権限の有無を整理してみた。 WordPress 3.1の権限グループ別の所有権限は次の通り。
権限グループ管理者
administrator
編集者
editor
投稿者
author
寄稿者
contributor
購読者
subscriber
レベル107210
テーマの変更'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'
なお権限グループ別のレベルと権限は、WordPressのバージョンによって差異があるので、/wp-admin/includes/schema.phpで確認するとよい。

最終更新 : 2024年04月24日 00:00


お勧め

has_category(2012年1月17日 更新)

bool has_category( [ mixed $category = '' [ , mixed $post = null ] ] )
投稿記事がカテゴリーに属しているか調べる。

comments_template(2018年5月27日 更新)

void comments_template( string $file = '/comments.php' , bool $separate_comments = false )
投稿ページ(post)または単一ページ(page)のコメント情報を取得し、コメント表示・投稿用のテンプレートファイルを読み込んで表示する。

is_taxonomy_hierarchical(2018年5月27日 更新)

bool is_taxonomy_hierarchical( string $taxonomy )
タクソノミーに階層(親子)関係があるか調べる。

send_confirmation_on_profile_email(2018年5月27日 更新)

void send_confirmation_on_profile_email()
メールアドレス変更を確認するメールを送信する。

get_the_modified_time(2023年9月20日 更新)

string | int | false get_the_modified_time( [ string $format = '' [ , int | WP_Post $post = null ] ] )
パラメータ$formatで指定したフォーマットで投稿の更新時刻を取得する。