wpseek.com
A WordPress-centric search engine for devs and theme authors



get_delete_post_link › WordPress Filter Hooks

Since2.9.0
Deprecatedn/a
apply_filters( 'get_delete_post_link', wp_nonce_url( $delete_link, "$action-post_{$post->ID}" )
Parameters: (3)
  • (string) $link The delete link.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
  • (bool) $force_delete Whether to bypass the Trash and force deletion. Default false.
    Required: Yes
Defined at:
Codex:

Filters the post delete link.





Source

return apply_filters( 'get_delete_post_link', wp_nonce_url( $delete_link, "$action-post_{$post->ID}" ), $post->ID, $force_delete );