get_delete_post_link WordPress Filter Hook
The get_delete_post_link hook is used to get the link to delete a post. This hook is typically used in the post_row_actions or page_row_actions hooks.
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
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |