Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

user-roles

How to add a Capability to a User Role?

August 4, 2022August 3, 2022 by Magenaut

I am managing a WordPress network and would like to add the unfiltered_html user capability to the already predefined user role of Admin. In a standard installation of WordPress the Admin account would already have this capability but in an MU installation only Super Admins are afforded this capability. WordPress Roles and Capabilities.

Categories Q&A, Wordpress Tags capabilities, user-roles Leave a comment

How can I allow the Editor Role to change Theme Settings?

August 4, 2022August 3, 2022 by Magenaut

I’ve just setup a new Blog for a friend and thought it’s better to not give him Administrator Access right away as a precaution.

Categories Q&A, Wordpress Tags themes, user-roles Leave a comment

Deactivate plugin for a specific user group

August 3, 2022August 2, 2022 by Magenaut

I would like to deactivate a plugin for a specific user. I’m using the following code inside a the wp-content/plugin-mu plugin file:

Categories Q&A, Wordpress Tags actions, plugins, user-roles Leave a comment

How can I display all Multisite blogs where this user is administrator?

August 3, 2022August 2, 2022 by Magenaut

Given the user ID, how can I display all the blogs where this user is administrator?

Categories Q&A, Wordpress Tags multisite, user-roles Leave a comment

Ordering users of a specific role by last name

August 3, 2022August 2, 2022 by Magenaut

I’m trying to display a list of authors by their last name. I can get the list to display but as yet I don’t seem to be able to order the list by last name. Any help would be greatly appreciated. Josh

Categories Q&A, Wordpress Tags user-meta, user-roles Leave a comment

How to change a user’s role?

August 3, 2022August 2, 2022 by Magenaut

I have custom roles in my setup and I want to be able to automatically change a user’s role thru a function. Say user A has a SUBSCRIBER role, how do I change it to EDITOR? When adding a role we just:

Categories Q&A, Wordpress Tags user-roles Leave a comment

How can I hide a category from Contributors in the edit/add new post screen?

August 3, 2022August 2, 2022 by Magenaut

I have a situation where I need to hide a specific category and it’s children from users who are logged in as Contributors. I don’t want them to see this category and it’s children in the categories meta-box on the add new post screen.

Categories Q&A, Wordpress Tags categories, customization, user-access, user-roles Leave a comment

How can I get a list of users by their role?

August 3, 2022August 2, 2022 by Magenaut

How can I get a list of all users that are in WordPress by their role or capabilities?

Categories Q&A, Wordpress Tags capabilities, user-roles Leave a comment

Send user activation email when programmatically creating user

August 3, 2022August 2, 2022 by Magenaut

I wondered if someone here might be able to help.

Categories Q&A, Wordpress Tags email, plugin-development, user-registration, user-roles Leave a comment

Temporary capability for current_user_can()

August 3, 2022August 2, 2022 by Magenaut

Is it possible to intercept calls to current_user_can() ?

Categories Q&A, Wordpress Tags capabilities, user-roles Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page8 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress