跳到内容

Sewn In Post Delete

v1.0.1

Jupitercow · 2015年6月13日 上架

A very basic framework for deleting posts on the front end. Uses a nonce for security and checks capabilities to what a user has access to.

正在使用
10+
评分
暂无
累计下载
1,765
最近更新
2015年6月13日
需要 WordPress 3.6.1+已测试到 4.2.39

截图

The basic shortcode in the backend.
The basic shortcode in the backend.
The default delete link on the frontend.
The default delete link on the frontend.

Adds a shortcode and action to add a “Delete Post” link to posts so user’s can delete them. By default it requires the user to have the “delete_post” capability for the post in question, but if you want anarchy, you can customize that all the way to loggedin or even public…

SHORTCODE

[sewn_post_delete_link] // Loads current post for editing

[sewn_post_delete_link text="Bye bye post" before="" after="" title="" class=""] // Will change the link text to "Bye bye post"

Attributes

These are the same arguments for in template action below.

text = link text
before = html to show before the link
after = html to show after the link
title = the link title, defaults to link text
class = extra classes to add to the link

IN TEMPLATE

This will show the link to users have the ability to use it.

do_action('sewn/post_delete/link');

do_action('sewn/post_delete/link', array('text'=>"Bye bye post", 'before'=>'', 'after'=>'', title=>'', 'class'=>''));

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums