Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_delete_post_link()

3 tags 1 category

get_delete_post_link() — Retrieves the delete posts link for post. Can be used within the WordPress loop or outside of it, with any post type.

Inputs: $post (int|WP_Post): Optional. Post ID or post object. Default is the global $post. $deprecated (string): Not used. $force_delete (bool): Optional. Whether to bypass Trash and force deletion. Default false.

Returns string|null: The delete post link URL for the given post.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…