=== Trash Post in Block Editor ===
Contributors: badasswp, activist507
Tags: delete, trash, post, block, editor.
Requires at least: 6.6
Tested up to: 7.0
Stable tag: 1.2.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Delete a Post from within the WP Block Editor with just a few clicks, making content management easier and more efficient.

== Installation ==

1. Go to 'Plugins > Add New' on your WordPress admin dashboard.
2. Search for 'Trash Post in Block Editor' plugin from the official WordPress plugin repository.
3. Click 'Install Now' and then 'Activate'.
4. Proceed to your Block Editor and locate the top right corner.
5. You should now see the 'Trash Post in Block Editor' icon available for use.

== Description ==

This plugin provides a quick way to <strong>delete</strong> or <strong>trash</strong> a Post from <strong>within</strong> the <strong>Block Editor</strong>. Previously, the only way to achieve this required a user to exit the article or post before deleting. Not anymore! Now, from the comfort of your Block Editor, you could easily delete the Post you're working on with ease.

= ✨ Getting Started =

Create a new Post or open an existing Post. Locate the 'Trash Post in Block Editor' icon at the <strong>top right</strong> corner of the Block Editor and click on it. The inspector panel shows you a <strong>Trash Post</strong> button where you can click on.

You can get a taste of how this works, by using the [demo](https://tastewp.com/create/NMS/8.0/6.6.2/trash-post-in-block-editor/twentytwentythree?ni=true&origin=wp) link.

= 🔌🎨 Plug and Play or Customize =

The Trash Post in Block Editor plugin is built to work right out of the box. Simply install, activate and start using.

Want to add your personal touch? All of our documentation can be found [here](https://github.com/badasswp/trash-post-in-block-editor).

== Screenshots ==

1. Trash Post - Delete Post from within the WP Block Editor.
2. Trash Button - Delete Post button located in the Inspector Panel.
3. Yes/No Prompt - Delete Post from within the WP Block Editor.

== Changelog ==

= 1.2.3 =
* Tested up to WP 7.0.

= 1.2.2 =
* Chore: Update CI/CD pipeline.

= 1.2.1 =
* Hotfix: Resolve issue with `validate_callback` method: `is_numeric`.

= 1.2.0 =
* Feat: Added language translations for the following `Japanese` ,`Indonesian`, `Turkish`, `Polish`, `Dutch`, `Brazil` and `Portuguese`.
* Chore: Modify Shortcut command - CMD + Shift + Delete (backspace).
* Chore: Added a pull request template file.
* Test: Update PHP unit tests.

= 1.1.1 =
* Use Composer for plugin setup.
* Tested up to WP 6.9.

= 1.1.0 =
* Feat: Add custom hooks - `tpbe_redirect_url`, `tpbe.afterTrashPost`.
* Improve `/trash` REST endpoint.
* Tested up to WP 6.8
* Update README docs.

= 1.0.6 =
* Bump up plugin version.
* Tested up to WP 6.8
* Update README docs.

= 1.0.5 =
* Feat: Re-position trash icon to Pinned Items area.
* Feat: Add shortcut command - CMD + SHIFT + K.
* Test: Add e2e automation tests.

= 1.0.4 =
* Add wp-env for local development.
* Enforce WP linting across plugin codebase.
* Use webpack generated dependencies.
* Update README docs.
* Tested up to WP 6.7.2

= 1.0.3 =
* Update README docs.
* Tested up to WP 6.7.2.

= 1.0.2 =
* Remove breaking WP dependency.
* Bump up plugin version.
* Fix Bugs & Linting issues.
* Tested up to WP 6.7.1.

= 1.0.1 =
* Bump up plugin version.
* Fix Bugs & Linting issues.
* Tested up to WP 6.7.0.

= 1.0.0 =
* Added Trash Post feature.
* Support for Arabic, Danish, Chinese, Hebrew, Hindi, Russian, German, Italian, Croatian, Spanish & French languages.
* Tested up to WP 6.6.2.

== Contribute ==

If you'd like to contribute to the development of this plugin, you can find it on [GitHub](https://github.com/badasswp/trash-post-in-block-editor).

To build, clone repo and run `yarn install && yarn build`
