Notice: Undefined property: stdClass::$delete_posts with custom post type
Notice: Undefined property: stdClass::$delete_posts with custom post type
Notice: Undefined property: stdClass::$delete_posts with custom post type
In MultiSite, can some users automatically have Site Admin rights on all sites, without granting them Network Admin access?
Ordinarily WordPress only allows Editors and Administrators to moderate comments, and both roles require those capabilities. This page from the Codex does an excellent job of explaining roles and capabilities: https://wordpress.org/support/article/roles-and-capabilities/ You can manually create a new Role and assign to it only the capabilities you want the Role to have, so that those you … Read more
Custom post type capabilities require “create_posts” to access the edit posts list page
Yes, this is indeed a problem. A dedicated ‘create_posts’ capability is planed: http://core.trac.wordpress.org/ticket/16714
Maybe this was some conflict plugin/functions.php/theme/WP-version… I just duplicated the editor role with User Role Editor, removed all the delete_*_posts capabilities and the user cannot delete a post.
Set it up so that your editors and writers use the default title as the first line and add a metabox for a subtitle that will output the other lines as separate lines. This will require a theme adjustment if you want them all included in the h1 header tag. With some adjustments to the … Read more
I have not looked at this plugins code, but what you will need to do is locate the part of the code that applies to show only this menu to the admin (normally it looks something like:) if ( current_user_can( ‘manage_options’ ) { // some code stuff in here } form there you should change … Read more
UPDATE – this is easy to do with the press permit plugin, I recommend it for any setup like this To get this working I had to do a couple of things: Default all pages/posts/categories ‘revisor’ (via Revisionary plugin) users to be restricted to ‘WP_Administrators’ Create a “User Group” for each department ie: ‘Conference Services … Read more
First add capabilities to the roles like this add_action( ‘after_setup_theme’, ‘add_caps_to_custom_roles’ ); function add_caps_to_custom_roles() { $caps = array( ‘read_cpt’, ‘edit_cpt’, ‘edit_others_cpt’, ); $roles = array( get_role( ‘third_party’ ), get_role( ‘data_entry_operator’ ), ); foreach ($roles as $role) { foreach ($caps as $cap) { $role->add_cap( $cap ); } } } THEN /** * Helper function getting roles … Read more