WPDev.one
Core Function
View Source on Trac ↗

get_delete_post_link()

get_delete_post_link( mixed $post = 0, mixed $deprecated = '', mixed $force_delete = false )

Retrieves the delete posts link for post.

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Optional. Post ID or post object. Default is the global `$post`.

Required
$deprecated
string

Not used.

$force_delete
bool

Optional. Whether to bypass Trash and force deletion. Default false.

Return Value

((string)
| void) The delete post link URL for the given post.

Function Information

Since Version
2.9.0
Source File
wp-includes/link-template.php
Advertisement