delete_link WordPress Action Hook

The delete_link hook allows you to modify the link that is displayed when you hover over a post in the WordPress admin area. This can be useful if you want to change the behavior of the link, or if you want to add a confirmation message before the post is deleted.

do_action( 'delete_link', int $link_id ) #

Fires before a link is deleted.


Parameters

$link_id

(int)ID of the link to delete.


Top ↑

Source

File: wp-admin/includes/bookmark.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.0.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.