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
- 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
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- Get post with multiple meta keys and value
- Echo all meta keys of a custom-post TYPE
- Defining capabilities for custom post type
- WP insert post and custom taxonomy
- Customize users’ capabilities to change a custom post’s post status
- Post metadata deletes itself
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- Custom Post Type Capabilities — Enable Edit, Disable Create and Delete
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- 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
- Trying to save custom post type from frontend partially working
- Assign category to front end post
- How can I include meta box content when searching?
- WordPress allow access only one custom post type “xyz” to custom user role but need to hide all admin panels
- Automatically adding meta data to posts or multiple query help
- Trigger “unsaved changes” dialog for custom post meta changes
- Conditionally Query Custom Post Types by Post Meta for Blog Home Page?
- Displaying Metabox value (custom post type taxonomy)
- How do I sort a custom post type admin column using two meta keys?
- Programmatically adding posts
- Making a Custom Post type only visible to non-users via a specific link
- How can I display my custom metaboxes on a custom post template?
- Allow Administrator role access to custom capabilities [duplicate]
- Custom Post Type, Saving Multiple Checkboxes
- how to interconnect custom post types?
- orderby in custom WP Query does not work
- wp_insert_post generates endless posts
- Populate dropdown from one custom post type inside another custom post type
- current_user_can() return FALSE but debugging says TRUE
- Notice: Undefined index: error and understanding wordpress
- Custom Post Type Capabilities
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- Deleting Custom Posts & Meta Data on Uninstall
- How do I create an archive page as a including metadata?
- How to set individual capability of post type in individual category
- Two Custom Post Types Many to Many Relationship
- how can I register a post_meta field in an existing CPT and then call it again with get_post_custom()?
- WooCommerce Customer Role Delete Custom Post Type
- Update postmeta Parent when post_status child change
- Update database from Quick Edit according to Checkbox state of Custom Post Type
- Dynamic Custom Fields
- Show Custom Post Type meta boxes only on Page Edit
- How to restrict author to only access one custom post type ?
- Add CPT values to Database
- Organize WordPress site, so it can maintain with huge database
- Meta Data for Custom Post Type not saving
- Check if post with same meta value exists
- Do posts, pages and / or custom post type objects have unique ID numbers or can there be multiple objects with the same IDs?
- WordPress custom post type capabilities issue
- Archieve.php not loading for custom post type
- Create Array from custom post type to display a slider
- Building Forums with Custom Post Types
- Values from meta-box not on $_POST
- copy images from custom field to another custom field
- How can I output WPAlchemy repeating fields meta values in my page template?
- Meta box data not saving
- Related posts meta_query CPT
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- best way to use custom taxonomy, post type and meta in a job system
- Say I have a tech blog, how best would I store technical specs for a phone, if i use custom post types
- How to order custom posts by one of the custom fields value, ‘date’?
- Hide title field of selected post-types on edit pages
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- How to create review point system for CPTs (many-to-many relationship)
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- How can I write a function that would update any missing specific post metadata?
- SELECT custom post type and its meta in SQL
- Custom attachment function not working in v5.4.2?
- Remove plugin settings from post creation page for a user role
- Allowing custom role user to edit post assigned to them but don’t let them create new custom type post
- Custom Function to redirect singular post if specific meta field is empty
- Saving Child Terms on front end not setting parent
- Custom post type: “transition_post_status” action get title and other fields
- update a posts of other custom post type
- How do I extract the contents of a CPT’s custom field for all posts?
- Submitting custom post from frontend,jQuery ajax, and custom validation – can’t find proper place to insert wp_insert_post()
- Delete custom post type metadata without deleting the post in admin area
- Order by post meta value gets random results
- Prevent author role from editing others posts
- meta query always fails even if data is correct
- Display a post count from a custom metabox selection
- Rich Custom Field for Custom Post type not saving
- Custom post type submenu sorted by specific meta_key & meta_value
- Automatically add custom taxonomy when meta value gets to a set number or beyond
- Display a list of posts whose meta field values are equal to the ID of the post being viewed?
- Changing to different post type maintains the redirection?
- How do I add the “orange counter” next to a Custom Post Type?