https://simvideos.infosapk.com/wp-admin/edit.php?post_type=wp_block
Is there any way that I can hide Reusable block codes from other users I m creating
]]>An administrator will have the ability to manage the entire site.
The site will include a parent menu (editable only by the administrator) that links to a set of subsections of the site, the content for each subsection needs to be controlled by a set of sub administrators.
Preferably the parent url structure for each subsection would be as such – mysite.com/subsection1, mysite.com/subsection2, mysite.com/subsection3, etc.
Sub administrators will have the ability to update only their own subsections of the site. They need to have capabilities to,
Graphical representation of what I’m explaining here.
I’m fairly new to Multisite, does it support such functionality?
]]>define( 'PLUGIN_CAP', 'Plugin Cap Control' );
register_activation_hook( 'file-with-code-init.php', 'on_activate' );
function on_activate() {
$role = get_role( 'administrator' );
if ( !empty( $role ) ) {
$role->add_cap( PLUGIN_CAP );
}
}
if ( current_user_can( PLUGIN_CAP, $user_ID ) ) { do something }
So I’ve been toying around with WordPress Roles and Capabilities, multisite enabled and I have two blogs setup. So, when I install my test-plugin via the “Network Admin” the code above won’t be processed through each individual blog that is apart of the Network. Why is that?
How would I go about this? I’ve read that get_blogs_list() is discontinued. That was my main idea, loop through each blog and set my Capabilities…
Any suggestion would be greatly appreciated.
** I apologize for putting this post into the wrong forum section… If it could be movied, since I’m unable too.
]]>Can someone explain to me what the different parts of the capability / role means? I’m guessing that S:10 means level 10 of that specific role? But what is a:1 and b:1 ?
And can I add additional roles here? If yes, where?
]]>I’ve thought of two ways:
a) Same db_users table, different *_usermeta tables.
b) Same db_users table, same db_usermeta table but different *_capabilities and *_user_level meta_key’s.
Both ways work great *if* they are manually adjusted. However, when a new user is created, it gets capabilities for only one of the blogs, and can do nothing on the other.
I will have to use the Role Manager plugin on both of the blogs, so I think “option (a)” will be a better way of keeping databases clean.
If someone can help out with this, it will be really appreciated.
Thanks in advance.
EDIT: I’m thinking of adding a WordPress mu installation to the same userbase, so if you have any warnings, I would appreciate them too.
]]>There is nothing like a ‘use_plugins’ capability?
Thanks, Cau
]]>my website is www.medinmark.com & i wish the audience to register under distinct user categories, with different roles & capabilities.
But i am experiencing difficulty in comprehending properly, how to manage this feature.
Kindly someone guide me please.
]]>my website is www.medinmark.com & i wish the audience to register under distinct user categories, with different roles & capabilities.
But i am experiencing difficulty in comprehending properly, how to manage this feature.
Kindly someone guide me please.
]]>