ah, there is a plugin that does this, but it also have some more features.
Related Posts:
- Adding a second email address to a completed order in WooCommerce [closed]
- Check if post is being published for the first time, or is an already published post being updated
- Apply custom role capabilities to administrator (without plugin)
- Get user id from email?
- Roles & capabilities GUI that does not create separate table
- Using email_exists() wp function in an ajax request
- How do I redirect upon login a specific user based on role?
- How to add another user to this remove_menu function?
- Add a new subscriber role using a function
- How do I call wp_mail from HTML?
- Trouble using antispambot()
- How to test for Super Admin
- Custom roles can’t access to wp-admin
- Custom registration URL lost when user makes signup mistake
- Custom function for specific user role
- Hide Author.php template from specific user role
- edit role display name and label name without plugins
- create shortcode to list users with specific meta key value
- Toggle User Roles with button
- Contact Form 7 – Delay auto responds
- How to change or add user role after getting post request data about pay? [closed]
- Execute a ultimate member action when user role is updated
- wp-comment author- url +, email filter hook
- Allowing users to view private posts (pending approval)
- Allow Contributor to edit their own posts after Adm aproval
- Deprecated function get_user_by_email($email)
- How to add custom JavaScript in functions?
- How to set default post editor based on role?
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- load CSS only for administrators on backend
- Adding additional roles on registration
- The Capability to choose post/page template
- How to add array [closed]
- Get users with different roles and call function on each of them (user_meta)
- How can I show different content for different user-levels?
- Custom user role still showing up after deletion, ideas?
- How to load a css file depending on the current role
- Allow user select role in wordpress default registration without plugin
- Paragraph spaces in email template function
- Remove check boxes and its label from screen option for custom role
- Add Change role button for list of user in an event
- How to show only specific category post by user role without plugin and restrict all other cats
- Change user role based on total number of items ordered
- Remove all video attachment, both files and post/postmeta from database?
- Problem with email function
- delete_user_meta for user in spesific group
- Change the second role depending on the first
- Restrict certain roles registrations by domain
- Multisite Admin Roles
- What add_action reference should I be using or should I use do_action?
- add_role menu pages are not visible
- Mail function not working with user accounts
- Do something when user creates post (that’s pending)
- How to hook wp_mail to add a custom email as BCC for each sent email?
- Get all users from role and add to dropdown (select) – wordpress, javascript
- Would it be possible to disable embeds for specific user roles? If so, how?
- How to make my logged-in user-role shortcode displaying name instead of slug?
- How can I add an extra WooCommerce hook
- Functions.php: If its single?
- Remove Menu Page Giving Error
- wp_link_pages: display current page number only if has multiple page breaks?
- Adjust which tempalte a page uses with a function?
- WordPress Content Security Policy and Subresource Integrity
- Accepted arguments value in hook functions
- Best practices for multiple Custom Feeds functions
- Shortcode pagination not advancing
- Commenter should see only his comments in wordpress
- translate the_title() with .po & .mo
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- How to construct function for applying filter?
- WordPress on AWS Auto scaling and ELB giving 503
- Display tags that only appear in one category
- How to display retweet count and likes in the meta above the excerpt
- Auto Generated HTML source code formatting
- Get Comma Seperated Taxonomy Linked Terms and Last Child Separated By “&” Instead Of Comma
- How to remove a specific word at the beginning of the content and add it to the end of the content
- Exclude Category ID in function
- Remove attachment page for audio media type only
- Function that prevents users from uploading photos more photos
- Conditional function for excluding first image from content, not working
- WordPress comment_form() does not display actual comments
- Message notification for user
- Different image using srcset function
- Render metabox gallery in frontend
- Pagination not working – FrontPage
- What is the earliest Hook a Script can use?
- I want to display the sku in the product pages of my EDD website
- How do I make a custom “Read More Blogs” button for my blog page
- Get shortcode attribute value to another function
- Child theme style.css didn’t work properly but the Customize Additional CSS did [closed]
- True parameter but jquery register in header and not in the footer with wp_register_script
- Instead of using $post, how do i get the thumbnail image of the $post
- List Most Read Posts from last 7 days (with custom post type and other meta queries)
- Preventing PHP Execution in Parent Theme
- How to shorten code with function?
- does acf_save_post cause endless loop?
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- Missing argument 2
- Load script only on selected Pages
- Convert Image to Webp on upload without plugin