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.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More