, otherwise posts are only saved as drafts
‘edit_themes’ => false, // false denies this capability. User can’t edit your theme
‘install_plugins’ => false, // false denies this capability. User can’t install plugins
‘update_plugin’ => false, // false denies this capability. User can’t update plugins
‘update_core’ => false // false denies this capability. User can’t perform core updates
));
This code creates a new user role with the name “role_name” and the display name “Display Name”. This role has the following capabilities: reading and editing their own posts and pages, as well as the posts and pages of others; creating new posts; managing post categories; and publishing posts. This role does not have the capabilities to edit themes, install plugins, or update plugins or the WordPress core.