Same problem here, that I’ve fixed. If it’s not you, maybe this will help someone.
Did you blocked the non-admin users from accessing to the /wp-admin Dashboard ? The link provide by get_delete_post_link() use wp-admin, so if you blocked the access to the non-admin, they can’t execute the delete.
Related Posts:
- Allow member to have access to custom post type only. Permission to only edit their own posts
- With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?
- Allow User to Edit Page Based on their Email
- Allow Author role to publish one post type and not another
- Registration and Custom Post Types – How to synchronize information?
- Roles for Custom Post Types
- Custom post type: check permissions and validate nonce
- read_post meta capability for anonymous users
- No Permission to add new Page, Post or CPT with Admin role
- Filtering results for post_type tells me I don’t have permission
- Fix permission error for deleting custom post from front-end?
- Preventing role reading others posts
- Why “Mine” is the default view when adding ‘capability_type’ in register_post_type
- Front-end submitted post is published with admin ID as author
- How to create new permission for custom post types for doing specific tasks
- Remove Custom Capability
- Query all posts where a meta key does not exist
- Can I assign a template to a custom post type?
- How to Add Custom Taxonomy To Woocommerce Plugin
- How to remove “read more” link from custom post type excerpt
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Can you make a custom metabox field be required to save a new post?
- Best Way to Create a List of Musician Gigs in WordPress
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Filter a custom field based on selection of another custom field (ACF) [closed]
- Can you have two CPTs with the same permalink structure?
- Remove wpautop from all posts/pages except my custom post type
- Posts in Multiple Columns and Rows with one single loop
- Hide child term posts on parent term pages
- Alphabetical sorting of custom post type – one letter per page
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Want to filter only parent post in admin area
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Post Via Email to a Custom Post Type
- how to only have one custom post type post?
- Remove current_page_parent from posts page link in WordPress nav menu
- Query to change custom post type with specific category
- CPT posts listed by category with custom rewrite URL, please help!
- Custom Post Type and Custom Taxonomy Permalinks
- allow edit of custom post type but not regular posts?
- How to add custom post type under option page
- register_taxonomy and register_post_type does not work [closed]
- Custom post type and body_class: Remove “blog” class
- Custom Post type is being ignored in query
- get_attached_media() on author page not working
- Custom Post Meta Data in Buddypres Activity Stream
- Getting posts under the custom post type ui category
- map_meta_cap woes
- WordPress combined with a basic MYSQL table [closed]
- Automatically generate a delete post link and provide it to post creator
- Custom taxonomy and custom post type – wrong permalinks and template
- How to display custom WP menus?
- Storing a many to many post type relationship in post meta and keeping SQL ability for Joins
- Unable to link categories to custom post type using standard function
- Is it possible to show multiple (custom) post types at the wp homepage only by using pluging code?
- Programmatically change post visibility on save_post action return a 500
- How to select a template for a custom post type?
- Saving data for different custom posts
- Conditional tag only for front of custom post type
- wp_get_canonical_url showing first url of the post for custom page
- get the permalink never return with empty value
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- A faster way to query custom post types with multiple conditions?
- WP_Query: Posts within category OR custom post type
- add_query_arg() for custom post type on all visible links
- Saving metabox keys and storing values as array
- Redirecting search to specific templates with $_GET[“post_type”]
- Custom post type filter is being applied to all of my posts
- How to query custom post types with multiple keys?
- CPT permalinks Rewrite
- Custom taxonomy terms hierarchical navigation
- Is it possible to add the Gutenberg block editor to a custom taxonomy?
- What is the best way to structure posts for the same event happening in different years?
- Apply a custom Template to a Custom Post Type from within a plugin
- How to create a Child & Siblings menu for a custom post type?
- Dynamically Adding Posts of Post Type to A List
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Automatic Set Category For A Custom Post Type
- Show parent category and subcategory once in while loop
- How to build Custom Post Nav Menu inside of the Loop
- Allow duplicate permalinks slugs for custom posts by different authors
- Loading a stylesheet on a specific page [duplicate]
- Display related post content and custom field content
- Create an administation subpage containing posts in a certain category
- Custom 404 redirect for a luddite
- How do I block/redirect ‘?post_type=cpt_name’ urls?
- How can you use a page for a custom post type?
- Pagination functions won’t work
- Custom post type and google visibility
- How to create default taxonomy term for a custom post type? [duplicate]
- title tag for custom post type remove taxonomy name from title tag
- Posts without featured image using other post’s featured image
- Display results from two Custom Post Types in page template
- Create a page selector using taxonomies
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Create page using same slug as custom post type
- Pagination not working
- Issues on saving data from CPT select metabox
- Custom order of CPT posts by title, in wp-admin area by default
- Dynamically count the number of custom post types associated to a custom taxonomy