This is something you can achieve with the Advanced Custom Fields plugin. The trick is to use the ACF_LITE
mode, which would let you define a dynamic list of user profile fields from functions.php
. You could iterate over each post type and display a checkbox for it. Then use the edit_user_profile_update
hook to call $user->add_cap('edit_[resource]')
or $user->remove_cap('edit_[resource]')
, etc.
Related Posts:
- Custom post type for ‘staff’ versus using wordpress user profiles?
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Prevent trash/delete action on specific post types
- Custom post type support for get_users(‘orderby=post_count’);
- Front end registration/login & publish/update 1 custom post
- User roles – enable custom posts disable posts
- Allow User to Edit Page Based on their Email
- 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?
- Assigning a role to a specific custom post type (and ignoring other post types)
- WordPress allow access only one custom post type “xyz” to custom user role but need to hide all admin panels
- How to show custom post type count in the users admin page
- Community and User Generated Content Website: Have been thinking about Drupal but leaning on WordPress heavily
- Delete Current Author Frontend user while delete custom post type
- WP-Admin edit.php & post.php slowdown after import of 10k users
- Link users to a custom post type
- Ajax Check Post Status
- Want to Add Custom Fields for Uploading video to WordPress Users from front end
- how to delete all users and posts based on ‘user_meta’?
- Roles for Custom Post Types
- Is using taxonomies the way to go here or would custom post types be better?
- Hiding posts by other users and non-logged in
- Users create/join groups
- Disable user from updating certain posts
- Query posts based on the meta key values of logged-in users?
- How to restrict author to only access one custom post type ?
- Create custom post with custom user rules
- Associate multiple users to custom post type
- How can i display movies in profile page, added by an user?
- Custom User role not working with custom post type
- get comments by current user inside page template
- how to associate several authors to a custom post type
- Assign post type to many users
- Check if user has comment on current post
- Query within a foreach within a query (queryception)
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- Add a custom post when inserting a new user in WordPress?
- Preventing role reading others posts
- Order users by number of posts (includes custom post type)
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- Display custom post front end filter by ACF equals current user
- users post count
- Clone wp-admin/users.php (Users Admin Page)
- Link custom post type to users membership
- Show all post type posts in manage users posts column
- Limit 1 post by user in each custom post type
- Get all of a user’s posts (custom post type) then get cumulative value of a specific meta_key value from those posts
- Assign a Post to a User
- Add WordPress users to a custom post type
- Custom Post Type Query by user id
- Autofill advanced custom field with user data
- connect users to Custom post types
- Reference field of users in custom post type
- Custom Post Hierarchy and users
- UPDATED: Save a custom_field value when automatically creating a post using wp_insert_post
- Creating multiple profiles under one user to assign to particular posts
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- Control what custom posts a user can see
- Associate custom categories to different user IDs
- Display and Allow users to edit their own profiles
- Check in function on custom page
- WordPress and Unity high scores table
- how to show Author post type count
- Conditional for single-{post-type}.php
- How to build a complex page structure
- Proper way of making custom post type landing page or archive page
- Change permalink structure for custom post type
- Pagination gives 404 error
- wordpress 3.4 template files in subdirectories
- I am trying to output portfolio items with a picture. This code doesn’t seem to be working. What am I doing wrong?
- Custom fields in Permalinks?
- Custom taxonomy template for multiple custom post types
- How to debug a blank page?
- Add/Remove current_page_parent class
- Importing posts from XML into custom post type
- Use different taxonomies in different custom post types’ permalinks?
- How to use terms from the same custom taxonomy in different roles in a custom post type?
- Custom bulk_action
- Add parent post to Custom Post Type [closed]
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- What’s the name of the custom post type yearly archive template?
- Taxonomy template page not working
- Running a custom query inside another cpt single and trying to grab a variable
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- How to add Support to show Fullwidth Featured Image of Custom Post Types in WordPress.?
- How to fix the Post Preview Button (CPT & map_meta_cap)
- Fetch data from two custom post types and create multidimensional array for output to html table
- Query filter by value in meta_value array
- Expire post to draft by date-picker custom field
- Edit the default ‘post’ custom post type arguments
- Publishing failed. The response is not a valid JSON response
- ‘Simple’ Reservation System
- Combine multiple separate lists into one
- Custom post type, next and previous links by page title
- How to add a custom button to each field of a Custom Post Types Admin Screen
- Most efficient way of showing children posts?
- Capabilities and mapping required for a role to be able to edit other’s posts of a custom type, BUT only be able to edit their own blog posts
- One Post with different content, depending on a Page
- custom fields not showing before get_header
- Custom Post Type Pagination for Bones Theme [duplicate]