WP_Query with meta_query for children
WP_Query with meta_query for children
WP_Query with meta_query for children
Protect sequence of pages with same password for each of two groups of users
I want to submit multiple users if checkbox is checked
WordPress multiple custom post types capability conflict in a single menu
I have made the following code for you to copy and paste in to your functions.php file. I’m sure there is a simpler solution, however this is the working solution I came up with. The first part of the section adds the new roles. function anakeme_custom_roles() { add_role( ‘level_1’, ‘Level 1’, [ ‘read_private_pages’ => true, … Read more
My subscriber has the “edit comment” capability but can’t edit comment
Admin access for custom user capabilities
There are a couple of “timing” issues you’re running into here. When you’re calling wp_get_current_user() this isn’t really available at the moment of logging in, so to capture the logging-in user, you have to use a slightly different approach. The same is with logout, as it uses the same method of getting the current user. … Read more
Hiding posts by other users and non-logged in
Custom post types as sub menu pages and role capabilities issue