Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

user-roles

WP_Query with meta_query for children

WP_Query with meta_query for children

Categories woocommerce-offtopic Tags children, meta-query, post-meta, user-roles, woocommerce-offtopic

Protect sequence of pages with same password for each of two groups of users

Protect sequence of pages with same password for each of two groups of users

Categories query Tags content-restriction, login, query, user-registration, user-roles

I want to submit multiple users if checkbox is checked

I want to submit multiple users if checkbox is checked

Categories customization Tags customization, user-registration, user-roles, wp-create-user

WordPress multiple custom post types capability conflict in a single menu

WordPress multiple custom post types capability conflict in a single menu

Categories custom-post-types Tags custom-post-types, plugin-development, user-roles

List all private pages user has access rights to read

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

Categories pages Tags pages, private, user-roles, users

My subscriber has the “edit comment” capability but can’t edit comment

My subscriber has the “edit comment” capability but can’t edit comment

Categories user-roles Tags capabilities, user-roles

Admin access for custom user capabilities

Admin access for custom user capabilities

Categories woocommerce-offtopic Tags admin, user-roles, woocommerce-offtopic, wp-admin

Logout users upon login, based on caps/role?

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

Categories plugin-development Tags capabilities, login, logout, plugin-development, user-roles

Hiding posts by other users and non-logged in

Hiding posts by other users and non-logged in

Categories custom-post-types Tags custom-post-types, posts, user-roles, users

Custom post types as sub menu pages and role capabilities issue

Custom post types as sub menu pages and role capabilities issue

Categories custom-post-types Tags admin-menu, capabilities, custom-post-types, user-roles
Older posts
Newer posts
← Previous Page1 … Page88 Page89 Page90 … Page144 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress