On this page
apply_filters( 'get_delete_post_link', string $link, int $post_id, bool $force_delete )
Filters the post delete link.
Parameters
$linkstring-
The delete link.
$post_idint-
Post ID.
$force_deletebool-
Whether to bypass the Trash and force deletion. Default false.
Source
File: wp-includes/link-template.php. View all references
return apply_filters( 'get_delete_post_link', wp_nonce_url( $delete_link, "$action-post_{$post->ID}" ), $post->ID, $force_delete );
Related
Used By
| Used By | Description |
|---|---|
| get_delete_post_link() wp-includes/link-template.php | Retrieves the delete posts link for post. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_delete_post_link