首页 WordPress函数大全 get_delete_post_link()

get_delete_post_link()

2020-05-01 / 3155阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_delete_post_link( int|WP_Post $id, string $deprecated = '', bool $force_delete = false )

Retrieves the delete posts link for post.

描述

Can be used within the WordPress loop or outside of it, with any post type.

参数

$id

(int|WP_Post)
(Optional)
Post ID or post object. Default is the global $post.

$deprecated

(string)
(Optional)
Not used.

Default value: ''

$force_delete

(bool)
(Optional)
Whether to bypass Trash and force deletion.

Default value: false

返回

(string|void) The delete post link URL for the given post.

大家谈论
    我的见解