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:

Description

Retrieves the delete posts link for post.Can be used within the WordPress loop or outside of it, with any post type.

Related Functions

get_edit_post_link, get_next_post_link, get_next_posts_link, get_adjacent_post_link, get_preview_post_link

Top Google Results

User discussions

wpseek mobile