get_delete_post_link

Sponsored Link

文字列の値としてゴミ箱に投稿を移動するためのURLを返します。

WordPressのループ内や外部で使用できます。ページ、投稿、添付ファイル、およびリビジョンを使用することができます。

Sponsored 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) (optional)投稿ID
デフォルト:なし

(integer) (optional) The post ID
Default: None

deprecated

(string) (optional)使用しません。
デフォルト:

(string) (optional) Not used.
Default:

force_delete

(bool) (optional)ゴミと強制削除をバイパスするかどうか。
デフォルト:false

(bool) (optional) Whether to bypass trash and force deletion.
Default: false

戻り値

(string)
パーマリンクを含む文字列。

(string)
A string containing the permalink.

変更ログ

Since: 2.9.0

ソースファイル

get_delete_post_link()は、wp-includes/link-template.php内に位置しています。

get_delete_post_link() is located in wp-includes/link-template.php

関連ファンクションタグ

Edit Link: edit_post_link(), edit_comment_link(), edit_tag_link(), edit_bookmark_link(), get_edit_post_link()

Sponsored Link