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
- User management system similar to wordpress one?
- Show all posts by author
- $wpdb->update with multiple parameters gives error
- How to save checkbox values for logged in users?
- wp search-replace on database returns PHP fatal error: Array and string offset access syntax with curly braces is no longer supported
- Custom user login page by creating a plugin
- Hiding div based on user role
- How does WordPress know wich language is chosen when there is a database connection error
- Programmatic Login from 3rd Party site
- Fix permissions for users role
- How can I save unique user data on my site? [closed]
- Add New User, extra fields which are required?
- user_profile_update_errors hook not executing
- Is it possible to create a wordpress database with php code?
- Update results, Before deleting the related category [closed]
- Modify user profile data through scripting?
- Store a default value for a transient on plugin activation
- Get users that likes the post
- How WordPress reacts to a lack of memory of the server [closed]
- Split reads to a different connection string
- Execute long and heavy processes
- Cannot execute php files in wp-content
- Dynamic content in template
- add_cap not working
- database sent to a JSON file
- inserting a post from an extern php file but post content doesn’t show on wp site
- WordPress installation permission errors
- wordpress archive a user
- Best practice for show data to one specific user?
- Featured image not working, because of custom user role?
- Using custom tables for old posts
- Call to undefined function get_userdata() in plugin
- Databases – Submitting data from inputs to database [closed]
- db converts decimal number wrong
- Not connecting to database in file with multiple MySQL connections
- How do I let contributors edit their posts after being approved once?
- get_users meta_query: REGEXP not working for matching new lines
- Change CSS based on is_user_logged_in
- How to show a users bio on a page
- Filtering a Database Query
- “operation successful” message
- Display Data in Table from External Database in WP using Shortcodes
- Is it best to avoid using $wpdb for security issues?
- Add post with approval by the admin
- How can I import an excel column into wordpress database?
- Blob file download problem
- WordPress Block developer from exporting Database via PHP
- How to retrieve the data from the sever and displaying it in a page?
- php if username is role
- Execute a function every hour in the background
- Create page with custom php script and fetched data
- wpdb prepare insert table doesn’t work
- Should I use WordPress to skin a database website?
- How do I display offsite database info on my wordpress site?
- Creating Database Table vs. Adding MetaData to Post & User
- WordPress and MySQL: trying to print data using PHP from user_meta custom field data
- How do you create two separate Register pages?
- Building a REST API for your web app exposes primary keys of DB records?
- How to keep the capability of users and disable Gutenberg editor in WordPress?
- Most commented posts by time period (last 12h, last 24h and etc)
- 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]
- Saving data from custom form in wordpress database
- Show current user posts only
- How can I find the cause of a 500 server error?
- Shortcode for Listing Users from Meta Value?
- I can’t update my data through $wpdb
- wpdb Cannot Update column in Database
- Can’t successfully check if post with title exist in database
- Cant connect to database with php 7.3
- Array to string conversion error in PHP 7.2 when returning user role as class
- Change page password every day (predictable password ;) )
- Lost in trying to create user database system
- Delete database record using plugin from admin panel
- How to get image from url from the database?
- Set default Database Storage Engine when creating tables with plugins?
- show something only when user comes from specific page at remote host?
- Get the users that my following users are following
- Wpdb get->results to out the the month from the db
- create front-end users post list by specific category