get_delete_post_link()获取删除文章、页面、附件的链接

目录

描述

Returns URL to move a post to the trash as string value.

Can be used within the WordPress loop or outside of it. Can be used with pages, posts, attachments, and revisions.

get_delete_post_link() 描述

用法

 <?php echo get_delete_post_link$id ); ?> 

get_delete_post_link() 用法

参数

id

(integer) (可选) The post ID

默认值: None

deprecated

(string) (可选) Not used.

默认值:

force_delete

(bool) (可选) Whether to bypass trash and force deletion.

默认值: false

get_delete_post_link() 参数

源文件

get_delete_post_link() 函数的代码位于 wp-includes/link-template.php

get_delete_post_link() 源文件

相关