i solve my issue my self by replacing some code as below
i replaced
register_activation_hook( __FILE__, 'psp_add_project_management_role' );
To
add_action('admin_init','add_testimonial_management_role',998);
Related Posts:
- Allow member to have access to custom post type only. Permission to only edit their own posts
- How to assign specific users the capability to edit specific pages / posts / custom post types
- User roles – enable custom posts disable posts
- How to restrict specific post types from being read or added by specific user roles (eg. author)?
- How can I get the last posts by user role?
- Custom post type capabilities require “create_posts” to access the edit posts list page
- Limit users by custom taxonomy and user roles
- How to restrict CPT post’s fronted view only for specific user roles?
- Roles for Custom Post Types
- Hiding posts by other users and non-logged in
- Users create/join groups
- Disable user from updating certain posts
- Custom User role not working with custom post type
- how to associate several authors to a custom post type
- Building Forums with Custom Post Types
- Preventing role reading others posts
- Clone wp-admin/users.php (Users Admin Page)
- Remove plugin settings from post creation page for a user role
- How do you make a custom post type invisible for subscribers
- How can I remove “Add new” button on custom post type
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- Control what custom posts a user can see
- Display and Allow users to edit their own profiles
- Edit the author of custom post type
- “Submit for review” for updates on existing posts
- Access to CPT but not to ‘post’ post type
- Allow add new post access to custom post but not wp post for some role
- Deny user access to edit post while allow him to edit custom post type
- Query posts based on the meta key values of logged-in users?
- How to restrict author to only access one custom post type ?
- Allow user to only access custom post type
- Where are $current_user->allcaps set?
- How to show featured image block in custom post type for Author?
- Associate multiple users to custom post type
- How to assign permissions for a CPT to a user
- Want to be able to sign up subscribers as authors
- How can i display movies in profile page, added by an user?
- WordPress custom post type capabilities issue
- disable quickedit for specific custom post type user role
- get comments by current user inside page template
- Make (custom) post type accessible only by custom query
- Assign post type to many users
- Adding guestbook to my wordpress site
- Check if user has comment on current post
- Role capabilities issue
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Select other roles as custom post authors
- Query within a foreach within a query (queryception)
- Unable to edit categories in custom post type
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- Allow admins to login as other users
- Can I Create a Second Admin Level User Role?
- How to handle this specific case of custom post type?
- Restrict category access to specific users/groups. Author always has access
- Redirect admin 403 “Cheatin uh?” admin pages
- Accessing a protected property of a post
- Add a custom post when inserting a new user in WordPress?
- Prevent user from editing others posts
- Order users by number of posts (includes custom post type)
- Post/Custom Post Type URL Access
- Enable comments for post when comments meta box removed
- Roles and Capabilities in Custom Post Types
- Creating teams of users in WordPress
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- How do I “trash” a custom post type post while logged in as Admin
- Change user role when user’s first post gets published
- Display custom post front end filter by ACF equals current user
- WordPress user role with create user capability?
- How to fix the Post Preview Button (CPT & map_meta_cap)
- Restrict Custom Post Type per role in Dashboard
- Restrict access to custom post type based on its taxonomy terms
- users post count
- While creating a post, can I restrict the authors in the dropdown list based on their user role?
- Why “Mine” is the default view when adding ‘capability_type’ in register_post_type
- Added new role with custom capability. But cannot access the page
- Create relationship between custom post types and users
- Link custom post type to users membership
- Restrict admin pages for specific user role
- Show all post type posts in manage users posts column
- Update user role for expired membership
- Conditional editing CPT – using editor’s role and author’s usermeta
- How to only display all posts to a custom User Role?
- Limit 1 post by user in each custom post type
- Allowing custom role user to edit post assigned to them but don’t let them create new custom type post
- Get all of a user’s posts (custom post type) then get cumulative value of a specific meta_key value from those posts
- I want to show post details based on roles user login
- Assign a Post to a User
- Multiple useres editing specified content
- Instructor can view, edit, delete only theirs courses
- Front-end submitted post is published with admin ID as author
- Add WordPress users to a custom post type
- Custom Post Type Query by user id
- Autofill advanced custom field with user data
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- Front End users account with lots of user Roles (not Woocommerce)
- How to create new permission for custom post types for doing specific tasks
- Capibilities of CPT WordPress
- Custom User Role: Can Edit Own Page, Cannot Create New
- connect users to Custom post types
- Reference field of users in custom post type