The question is: How do you want to handle it?
From what I understand, you’re currently trying to build up a song (“track post”) database, from which users should be able to pick from for their playlists. With every user being able to add new songs.
You could solve this in a similar fashion to how StackExchange works: add a Community user. Whenever a song is created, its ownership gets transferred to the Community user. Then add custom capabilities which refer to that Community user. Who can edit posts, who delete, …?
In this basic version, it might turn out that a user is not able to edit/delete a song s/he initially created. You can even achieve that by saving the original creator as a meta field, hooking into user_has_cap
.
Related Posts:
- How to assign specific users the capability to edit specific pages / posts / custom post types
- REST API: How can I restrict a custom post type to only be accessible by authenticated users?
- Allow Users Access to Custom Post Type Only
- Custom post type capabilities require “create_posts” to access the edit posts list page
- How to restrict CPT post’s fronted view only for specific user roles?
- Restrict Access to Posts based on Custom User and Post Meta Data
- How can I get some of a posts meta data whilst it is still inserting?
- How can I remove “Add new” button on custom post type
- Query all posts where a meta key does not exist
- Capabilities and Custom Post Types
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- what is the correct way to compare dates in a WP query_posts meta_query
- Allow member to have access to custom post type only. Permission to only edit their own posts
- Advanced search form with filters for custom taxonomies and custom fields
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?
- Meta query with boolean true/false value
- Custom post type role permissions won’t let me read
- Get post with multiple meta keys and value
- Correctly delete posts with meta and attachments [duplicate]
- Allowing custom role access to custom post type in back end
- Storing revisions of metadata for custom post type
- Custom field values deleted when trashing custom post type
- How to get all custom fields of any post type
- Update CPT meta data using REST API
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Get post ID from wp_insert_post()
- Echo all meta keys of a custom-post TYPE
- Change capability type of post type registered by plugin
- Custom Post type – how to get checkbox to update meta field to null
- Allow user to Edit Posts but not Add New?
- How can I filter posts by post_parent in the admin?
- Defining capabilities for custom post type
- How do I Paginate Search Results for Custom Post Types?
- WP insert post and custom taxonomy
- Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding ‘capability_type’ parameter
- Can I make user role that can only access a certian content type?
- Ordering posts having multiple post-meta date fields
- Custom Post Type with Input fields to seperate table on database.
- How do I remove all the metaboxes for a custom post type?
- Customize users’ capabilities to change a custom post’s post status
- Show custom post type endpoint in REST API just if user has capability
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Gutenberg how to make attribute to save to meta
- Notice: map_meta_cap was called incorrectly
- How do I programmatically add items of content to a custom post type?
- How to programmatically create a connection with [Plugin: Posts 2 Posts] on cpt publish?
- Post metadata deletes itself
- How to create a mini directory in WordPress?
- How Can I save multiple records in same meta key?
- Not Able to Insert Taxonomy Term Using wp_insert_post()
- Create user role restricted to specific CPT
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- Custom Post Types – Capability Type
- Get all posts from custom post type and insert in select input as metabox
- Detect meta value changes when post is updated (post_updated)
- Custom Post Type Capabilities — Enable Edit, Disable Create and Delete
- Search everything (posts, pages, tags, cpt, meta)
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- How to not allow custom roles to edit published custom post types?
- When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?
- Permalinks using event date (year & month) instead of publication date
- Custom Post Type: Set post_title equal to a custom post type field
- I can’t set meta_key in my custom post type query
- Grossly inefficient wordpress loops!
- Compare 3 custom fields and sort by oldest
- Using Custom Meta Capabilities on Custom Post Type
- Remove Custom Post Type menu for non-administrator users.
- How I upload, save and set a featured image from my frontend?
- How Do I Use WP_Query to Run This Database Query as Search Result?
- WordPress Admin Panel search posts with custom post meta values along with title
- Creating a custom post type upon registration
- How to automatically apply a password to all posts within a custom post type
- How to Update post status using meta data in Custom post TYpe
- How to restrict specific post types from being read or added by specific user roles (eg. author)?
- Trying to save custom post type from frontend partially working
- create a back-end wordpress content submission using custom post type
- Rest Api v2 orderby meta_key in custom post type
- bulk Update post_meta with default values
- Reason action hook won’t work with update_post_meta from frontend form? Alternative?
- How do I code access to the built-in UI of a CPT when it’s placed as submenu of another CPT that is protected by role?
- wp_insert_post custom taxonomy
- Can’t sort order of wp_query with 2 meta keys
- Showing Meta Data for Custom Post Types?
- How to get source of custom meta image?
- Assign category to front end post
- Having trouble with custom post type / meta box
- Query for posts from any post type but only add instock products
- How can I include meta box content when searching?
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- WordPress allow access only one custom post type “xyz” to custom user role but need to hide all admin panels
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- How can I programmatically save data into custom fields that contain serialized data?
- Displaying Meta Box Image
- Custom post type category not displaying in custom post type
- What hook should be used to programmatically create a post only when master post is updated?
- WordPress capability_type arguments
- How to make custom post meta wp_editor translatable?
- Custom role capabilities to administrator not taking effect (no plugin)