Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kellymears/hard-pass
Maintain a hardcoded block blacklist in PHP
https://github.com/kellymears/hard-pass
Last synced: 26 days ago
JSON representation
Maintain a hardcoded block blacklist in PHP
- Host: GitHub
- URL: https://github.com/kellymears/hard-pass
- Owner: kellymears
- Created: 2019-05-20T06:46:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T07:04:39.000Z (over 5 years ago)
- Last Synced: 2024-10-08T18:17:32.925Z (about 1 month ago)
- Language: PHP
- Size: 14.9 MB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hard Pass
WordPress Plugin for maintaining a hardcoded block blacklist (in PHP).
## Installation
Requires PHP 7.1.3, I think.
Just run `composer install` and you should be good to go (compiled script included in package).
If you want to modify the JS you can do so with `yarn && yarn mix` but it isn't necessary to utilize this plugin.
## Usage
Install and modify `blacklist.config.php` to fit your desires. My personal wrecking ball is included.
## How does it work
Create a new WordPress REST Endpoint @ 'hardpass/v2/blacklist' which serves the `blacklist.config.php` blacklist in JSON format.
A small script is enqueued and consumed by the editor which unregisters blocks included in that call.
I do not know why this is not a core feature of Project Gutenberg.