WordPress开发者和主题制作者的搜索引擎



get_delete_post_link ›

Since2.9.0
已弃用n/a
apply_filters( 'get_delete_post_link', wp_nonce_url( $delete_link, "$action-post_{$post->ID}" )
参数: (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
定义在:
文档:

Filters the post delete link.





源码

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