After you’ve created the new role, you need to add the capability to it using add_cap
.
Check here for more info: https://codex.wordpress.org/Function_Reference/add_cap
I think that for your particular case, you could replicate an Author but then remove certain capabilities using remove_cap
https://codex.wordpress.org/Function_Reference/remove_cap
Related Posts:
- How to connect database table to each registered wordpress user.
- Remove admin bar for subscribers
- Changing user_nicename
- How to auto login user again after change user_login
- How to track a users progress through pages by inserting data into WordPress Database?
- Do not execute If User is login as Administrator or any Specific Role
- How can I call a specific file (via php) by referencing the logged-in username?
- Change wordpress’ database data using ajax – how to get current user id?
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Add another role to a user when they click a button?
- How to set max users to 17.000
- Get author meta of all writers
- Let users register weight each day and save it in DB
- Forbid certain users to access a specific page
- How to lock users account until approvation
- How to create a User Role and give permission to only use Web Stories plugin?
- How to create custom user role without plugin?
- Custom Admin Menu Report for Specific User ID
- How to add custom user role into wordpress
- wp_insert_user role not working
- Add Custom User Capabilities Before or After the Custom User Role has Been Added?
- How to check if image is already stored in a site’s post database? (network)
- Display user’s total comment count outside The Loop
- Can i check if user is doing any ajax request?
- How to Join two tables from separate databases within WordPress
- wordpress separate registration for different roles
- Import 10,000 Users into WordPress WITH a specific ID for each user
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- automated tests as a user?
- How to generate page content from database the right way?
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- Proper way to edit a post via phpMyAdmin without breaking the compare revisions tool
- Creating user relationships
- Get all user meta by meta key instead of ID
- phpMyAdmin displays error when importing database
- How to get the POST TITLE using the POST ID?
- Why is the post meta[] empty when I make a call to the wordpress rest api?
- WordPress Scheduled Event Request Blocking
- Trying to establish connection to External Database
- Correct folder permissions?
- Show all posts by author
- $wpdb->update with multiple parameters gives error
- Programmatic Login from 3rd Party site
- Is it possible to create a wordpress database with php code?
- Store a default value for a transient on plugin activation
- Get users that likes the post
- Split reads to a different connection string
- WordPress installation permission errors
- Not connecting to database in file with multiple MySQL connections
- get_users meta_query: REGEXP not working for matching new lines
- Building a REST API for your web app exposes primary keys of DB records?
- Is it possible to create new user from external form using REST API?
- Foreach loop inside an array_merge
- Add User Role: Pre-saved in User-Meta [SOLVED]
- wpdb Cannot Update column in Database
- Array to string conversion error in PHP 7.2 when returning user role as class
- Change page password every day (predictable password ;) )
- Noindex subscriber author page
- WPDB – Read and write value from / to database
- How do I make this Metabox show current DB value?
- How to Generate a list of Most Commented post?
- Why when I create a new post I found 2 record related to this post into the posts database table?
- Execute PHP code only with specific user role
- What’s wrong in my PHP code? I’m using WordPress Astra Theme and I can’t insert data into my SQL
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- Sort new column in Users wp-admin
- $_POST returning empty values
- How to send custom form submissions to WordPress Database?
- Submiting with problems on one of the options php wprdpress
- How to count active users on a specific page
- Confuse between forms and tables
- code that I can run, or a plug in to show what sql tables something pulls information from
- Adding column to wpex_users
- Using wpdb to connect to a different database is not working
- Use WP user status (logged_in) to manage access to independent application
- custom search query database in child theme
- Insert data from form to database
- Echo Option Value Based On WordPress User Role
- Matching multi user
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- I want to use wordpress database in android app using json encode?
- Can form entries from a WordPress form go to a database
- Update only some custom user fields
- Weird Behaviour: Not all WordPress Posts appearing
- Can not manually create a database ( db, user, pass ) for a plugin
- main menu page redirects to user ID
- two wordpress sites, two themes, one database, same content
- Check if values exists DB
- Adapting a php array to WordPress
- MySQL database migration to WordPress
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- MySQL Engine vs. Charset
- Custom query_posts() parameter
- How to check if a value exists in one of two database tables
- How to edit the default database of WordPress [closed]
- notify users when changed database
- Display total count of products in orders of a specific order status
- save array of objects with update_option
- PHP Works only for logged in users: [closed]
- Can’t insert into a database wordpress