Sewn In Post Delete

Sewn In Post Delete Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 1,010 downloads
Sewn In Post Delete Icon

Try plugin: Sewn In Post Delete

We'll create fresh WordPress site with Sewn In Post Delete installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Sewn In Post Delete

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.

0


0


0


0


0

updated: 9 years ago
since: 9 years ago
author: Jupitercow

Description

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'=>''));