current_user_can()
ログイン中のユーザーに対して、指定の権限があるかを調べる。
current_user_can('author') // 記事投稿の権限があるか
current_user_can('administrator', 'author') // 管理者としての権限がるか
current_user_can('update_core') // システムの更新の権限があるか
current_user_can('edit_pages') // 固定ページの編集権限があるか
current_user_can('publish_posts') // 記事を公開する権限があるか
current_user_can('edit_posts') // 記事の登録する権限があるか
current_user_can('read') // 記事を読む権限がるか