get_delete_post_link
get_delete_post_link ( $post = 0, $deprecated = '', $force_delete = false )
Parameters:- (int|WP_Post) post Optional. Post ID or post object. Default is the global `$post`.
- (string) deprecated Not used.
- (bool) force_delete Optional. Whether to bypass Trash and force deletion. Default false.
Returns:- (string|void) The delete post link URL for the given post.
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Retrieves the delete posts link for post.Can be used within the WordPress loop or outside of it, with any post type.