Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Sewn In Post Delete

Описание

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

Скриншоты

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

Установка

  • Install plugin either via the WordPress.org plugin directory, or by uploading the files to your server.
  • Activate the plugin via the Plugins admin page.

Часто задаваемые вопросы

None yet.

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«Sewn In Post Delete» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Sewn In Post Delete» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.0 — 2015-06-08

  • Initial launch