get_delete_post_link() WP 1.0
Retrieves the delete posts link for post.
Can be used within the WordPress loop or outside of it, with any post type.
Hooks from the function
Return
String/null. The delete post link URL for the given post.
Usage
get_delete_post_link( $id, $deprecated, $force_delete );
- $id(int/WP_Post)
- Post ID or post object.
Default: global $post - $deprecated(string)
- Not used.
Default: '' - $force_delete(true/false)
- Whether to bypass Trash and force deletion.
Default: false
Changelog
Since 2.9.0 | Introduced. |
Code of get_delete_post_link() get delete post link WP 5.6
Related Functions
From tag: edit_
More from category: Posts, pages...
- get_permalink()
- get_post_field()
- get_post_status()
- get_post_time()
- get_sample_permalink()
- get_the_content()
- get_the_date()
- get_the_excerpt()
- get_the_ID()
- get_the_modified_date()