Only REST API WordPress Plugin | Codefreex Skip to content
Only REST API icon

WordPress plugin

Only REST API

Redirects all front end, non-REST API requests to a single page.

By Braad20+ active installs
Active installs
20+
Version
1.0.0
Last updated
Dec 7, 2015
Tested up to
WordPress 4.4.34
Requires
WP 4.0

Health check

Is Only REST API safe to rely on?

Our reading of the public WordPress.org data: maintenance, compatibility, ratings and support.

No update in over a year

Last updated on December 7, 2015. It may not be compatible with current WordPress or PHP, and unfixed issues are a security risk.

Not yet tested with the latest WordPress

Tested up to WordPress 4.4.34. It often still works, but check on staging first.

Rank tracker

Where Only REST API ranks in WordPress.org search

Its position in WordPress.org plugin search for its tags and name, refreshed weekly so you can see how its visibility changes.

WordPress.org search positions for Only REST API
KeywordPositionChangeTrendCurrent #1
api
json
only
rest
only rest api

Checked against the top 100 WordPress.org search results.

Overview

What Only REST API does

Got a WordPress install that serves only as the data layer and/or admin UI of your web application?

This plugin will effectively turn off all default front end output, redirect all front end urls to the main site url, and optionally display a message of your choice. The message can be a simple plain text message or you can use the included filters to completely control the HTML output.

All activity in the wp-admin and all requests for assets like images, scripts, files, etc. will be unaffected by this plugin. Only requests that go through the template_redirect action will be affected.

Rather than contaminate the data structures you might be using for your application (like posts and pages) this plugin includes a settings page with a simple textarea box where you can save any basic message you want to show. The message content is stored in the options table, and the textarea supports all the same HTML that you can use in post content.

You can use the only_rest_api_page_content filter to include any custom HTML output you want inside the <body> tags, or you can use the only_rest_api_page_html filter to completely replace all HTML output of the message page, including the <html> and <head> tags.

There is also an only_rest_api_page_css filter that allows you to override the 5 lines of…

Description from the author's listing. Read the full listing on WordPress.org

Screenshots

Only REST API in action

Customizable message shown on the front end for non-REST API requests
Customizable message shown on the front end for non-REST API requests

FAQ

Only REST API: questions and answers

What is Only REST API?

Only REST API is a WordPress plugin by Braad. Redirects all front end, non-REST API requests to a single page.

Is Only REST API free?

Only REST API is listed in the WordPress.org plugin directory, so the version there is free to download and use. Some authors also sell paid add-ons or a premium edition with more features and support.

How many websites use Only REST API?

WordPress.org reports 20+ active installations of Only REST API. That figure counts sites running the WordPress.org version and is rounded down by WordPress.org.

Is Only REST API still maintained?

Only REST API was last updated on December 7, 2015. The current version is 1.0.0. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.

What does Only REST API require?

Only REST API requires WordPress 4.0 or newer. It has been tested up to WordPress 4.4.34.

Can Codefreex set up or customize Only REST API?

Yes. Codefreex installs, configures and customizes WordPress plugins including Only REST API, fixes conflicts and performance problems, and builds custom features when a plugin does not do exactly what you need. Send your site URL for a free review.

Free expert review

Need Only REST API set up, customized or fixed?

Tell us about your site and what you need this plugin to do. A senior WordPress developer replies within one business day with a plan and a quote.

Built this plugin yourself? We help WordPress product teams with development, support load and growth. Talk to us