rooftopcms / rooftop-response-sanitiser
The awesome WP-API includes some things in its response that we would rather handle in the client.For example, we remove content['rendered'] and replace with content['json'] with links replaced with shortcodes.
Installs: 386
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 2
Type:wordpress-muplugin
This package is auto-updated.
Last update: 2022-04-22 20:12:44 UTC
README
=== Rooftop Response Sanitiser === Contributors: rooftopcms Tags: rooftop, api, headless, content Requires at least: 4.7 Tested up to: 4.8.1 Stable tag: 4.8 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html Alter the standard WP-API response with custom fields == Description == The awesome WP-API includes some things in its response that we would rather handle in the client. For example, we remove content['rendered'] and replace with content['json'] with links replaced with shortcodes. Track progress, raise issues and contribute at http://github.com/rooftopcms/rooftop-response-sanitiser == Installation == rooftop-response-sanitiser is a Composer plugin, so you can include it in your Composer.json. Otherwise you can install manually: 1. Upload the `rooftop-response-sanitiser` folder to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. There is no step 3 :-) == Frequently Asked Questions == = Can this be used without Rooftop CMS? = Yes, it's a Wordpress plugin you're welcome to use outside the context of Rooftop CMS. We haven't tested it, though. == Changelog == = 1.2.1.2 = * Remove link attribute parser as it was causing a performance hit = 1.2.1.1 = * Run shortcodes before converting line breaks to paragraphs with wpautop = 1.2.1 = * Tweak readme for packaging = 1.2.0 = * Register a rest hook to add the post status to responses == What's Rooftop CMS? == Rooftop CMS is a hosted, API-first WordPress CMS for developers and content creators. Use WordPress as your content management system, and build your website or application in the language best suited to the job. https://www.rooftopcms.com