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
return apply_filters( 'get_delete_post_link', wp_nonce_url( $delete_link, "$action-post_{$post->ID}" ), $post->ID, $force_delete );
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.