W3cubDocs

/WordPress

apply_filters( 'get_delete_post_link', string $link, int $post_id, bool $force_delete )

Filters the post delete link.

Parameters

$link

(string) The delete link.

$post_id

(int) Post ID.

$force_delete

(bool) Whether to bypass the Trash and force deletion. Default false.

Source

File: wp-includes/link-template.php

View on Trac

Changelog

Version Description
2.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_delete_post_link