How to disable the REST API

I know, we are all excited about the REST API and in fact we already had the first version in WordPress 4.4 but who is currently using it? Do you have any application on your website that uses the REST API? So why have the REST API and all the headers included in your website active? Good question, right?

Oh, you did not know? Yes, the REST API is already installed on your website, but do you use it? Oh! What is not?

Well, if you're worried about the performance of your site why have something that you do not use? Let's see what we can remove …

Disable the links in the REST header API

The first thing we can eliminate, if we are not going to use it, are the different header links that the WordPress REST API adds, that if you do not use it with any application or plugin, they do not paint anything. It is unnecessary code and we want WordPress to go as fast as possible and light right?

From WordPress 4.4 the following link tag is added to all the pages on the cover:

We can disable it by adding the following to the functions.php file of the active theme or to your customizations plugin :

Disable links from oEmbed Discovery

WordPress 4.4 also added the following oEmbed discovery links to all single-entry pages:

And we can disable it with the following function (do not I tell you where else?):

Deactivates the l ink of the REST API in HTTP headers

The following header link has also been added in WordPress 4.4 to all page requests:

And we can disable this header by adding the following to our beloved file functions. php or our plugin functions:

You do not need any of these links? Nothing, we put all this to capon in our file of functions:

Completely disables the REST API

If you have very clear that at the moment you do not use the REST API then you can attack the root issue and deactivate it completely. You have a couple of options:

Disable the REST API with a function

Simply add the following function to the functions.php file of the active theme or to your customizations plugin:

Disable the REST API with a plugin

Well yes, just like there is a plugin to install the REST API in full you have one to deactivate it, it's called Disable JSON API you install it, you activate it and ready.


Essential references:

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Calypso is not just the new interface of WordPress.com

Yesterday we were talking about the WordPress.com Mac application and certainly as such it contributes little, but that was nothing but the shell, the reality that transcends after something that will sound more and more in the WordPress world: Calypso .

A little history about Calypso

It all really started with ] the acquisition by Automattic of CloudUp a tool for sharing files in the cloud based on JavaScript, where they found a really well-prepared development team, with fantastic ideas that could be used for WordPress.com.

This, for a team formed in the core of WordPress, mainly based on PHP, was a new issue, but they launched through Github a collaborative project to create what could be the future interface of WordPress.com , Who? n know if also WordPress as a whole?

Two years later, thousands of hours of development, millions of lines of code and a huge job by dozens of programmers, yesterday announced the public version of Calypso the new interface of WordPress.com, and perhaps much more.

 calypso WordPress.com

What is Calypso?

Created using JavaScript and WordPress.com REST API, not to be confused – at the moment – with the WP REST API Calypso has redesigned the way we see WordPress, its administration, publication and even the connection with other applications and services.

uses a layer of Node.js to load the page initially and has used the Facebook user interface creation JavaScript library known as React and the compiler JavasCript Babel .

 Calypso technologies

Basically what it offers, and we can already check in WordPress.com, is …

  • Unique page interface: through JavaScript you navigate through all the functionalities in a fast and fluid way. [19659014] Fully adaptable ( responsive ) to all types of mobile devices.
  • Multi-site: ability to manage multiple websites from a single interface, be it WordPress.com or WordPress blogs hosted with JetPack active and connected.
  • Fully Open Source, with the available code on Github .
  • New publication interface, minimalist and with drag-and-drop support
  • Administration and updates of themes and plugins, even WordPress hosted, using JetPack.
  • In short, the new WordPress.com interface that you can already experience .

If you want to have nightmares here is the list Full changes from the "old" interface of WP-admin to Calypso …

 changes from WP-admin to calypso

How does this affect WordPress?

Logically, the development from Calypso puts the first stones of what can be WordPress as a whole.

Will WP-admin disappear?

It is something that we will have to decide the whole community, but if something is clear to me it is that for the end user, the administrator of the web, it makes no sense to have a backend being able to do everything in frontend in a more intuitive, visual and efficient way ]let alone for a blogger or an editor.

The fact that 25% of the Internet is already created by WordPress and the future that awaits our beloved CMS makes it practically indispensable radical change in the way to use and understand WordPress so that nvierta in a first-order framework, infinitely scalable, fast, intuitive, secure, adaptable, and as always open source .

WordPress was born as a development in PHP ago 10 years, but today the change to JavaScript is almost mandatory, something that, logically, will cost a significant effort to the thousands of WordPress developers, which I see recycling technologies that have been with us for just over 2 years ]but life is like that, and much more on the Internet.

Also Automattic's decision to release the Calypso code opens a world of possibilities as there will be versions, forks ]additions to the WordPress API, infinity is the limit. What is clear is that there will be a merger between the WordPress.com REST API and the WP REST API .

I often criticize some Automattic decisions, but in this case I can not help but take away the hat, for complying scrupulously with the GPL and WordPress philosophy that the code is better open than closed .

The present and future of WordPress goes through the use of JavaScript, Node.js and the WordPress REST API . In the next version 4.4 will already include the first phase of the API, and in the following months we will see the first steps of the hopeful future that awaits WordPress for the next decade , and the following.

Grab that come curves!

What do you think?

You are WordPress, you are a community, what do you think about this Automattic decision? How do you see the future of WordPress?

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say that we have not warned you.

Loading …

That may also help you:

WordPress 4.4 beta 1 – The countdown to the future of WordPress begins

The first beta version of WordPress 4.4 is now available, so the countdown to the final release of a WordPress version begins, although personally I think it will be transitional, if that will put the foundations of the future of WordPress .

As you can see, much programming improvement, under the hood as we usually say here, and apparently little thing that the user will perceive final, but is the beginning, the foundations of the future of WordPress and you should see it as such, as the beginning of an even more hopeful future if it fits for WordPress .

WordPress 4.4 what news do you want?

And for this a debate has been opened in the development blog in which Scott Taylor who will lead this version, has opened the melon so that we all aim our wish list of news that we would like to see in WordPress 4.4 which is expected to be available for December 2015 .

At the moment I think that's fine with WordPress 4.4 .

WordPress 4.3 the next revolution? • WordPress Help

WordPress 4.3 it's still not clear if it's going to be the update of the year or it will go completely unnoticed. Everything will depend on the novelties that are finally included in this version for which is scheduled for release this August .

At the moment we know these are these …

We saw we talked a few days ago the incorporation of the menus to the Customizer with the added controversy that it would not replace the current management system but would double (desire to touch the noses and mess things up).

CUSTOMIZER ON THE ADMINISTRATION BAR

Another novelty, incorporated into the beta 4 of WordPress 4.3 is that now the customizer is no longer a submenu of Appearance in the Site Administrator menu but occupies its own independent space, as can be see in this screenshot:

 menu customizer wordpress 4.3

ICON / SITE IDENTITY

But there's more. Another new feature that can be tested in development versions is the new utility of Icon of the site the old name favicon that, now, can be added as you would with any another image from the Settings -> General of the administration the personalizer of your WordPress, thus eliminating a task so far or very manual or by means of plugins, an excess

 site identity in wordpress 4.3 customizer

The only thing to keep in mind is that the image you use is more than 512 pixels wide.

So this idea is fine, but boy, is not it to shoot rockets either. Of course, it works great, and we will all have some nice favicons added without the need for additional elements or modifications. Ea, we give you the approval.

PUBLISH THIS

Another of the novelties that you can also try already on sites in development with trial versions (as of this article the 4.3-alpha-33039) is the improvements introduced in the tool Publish this which already needed a fix and it seems that lately we have remembered about it since it is a jewel never sufficiently exploited and exploited.

 publish this wordpress 4.3

SAFE PASSWORD GENERATOR

In the current versions of WordPress 4.3 the usability of the tool has been greatly improved, and a more complete text editor has been added that the misery we had until now. It's worth trying, and getting used to it is one of the little hidden wonders of WordPress (you have it in Tools -> Tools available )

Another new feature we'll see in WordPress 4.3 is a safe password generator with which, from your profile, you have at last a password that really protects you from brute force attacks. It is an improvement that was already taking, of course.

Also, by the way, no more passwords will be sent by email when creating users, another good security measure.

AUTOMATIC MARKDOWN IN THE EDITOR

One of the incorporations in WordPress 4.3 that will have as many lovers as detractors is the inclusion of the conversion of special characters in formats automatically.

In this way, for example, if you start a line with certain characters automatic characters will be applied, namely:

  • To create ordered lists automatically a line starts with 1. or 1)
  • To create unordered lists, automatically start a line with * or
  • To create an appointment, start a line with>
  • To insert a header automatically start a line with # and the type of header to create (from 1 to 6)

Something similar to what you do in modern word processors, and will greatly facilitate the formatting of texts on mobile devices, since there will be no walk by selecting text with your finger and then look for the button corresponding to the format to be applied.

PAGES WITHOUT DEFAULT COMMENTS

With the new version the pages will have inactive default comments, something that of course you can change manually. [19659038] SHORTCAKE

Also, a thing called Shortcake which will delight fans of the shortcodes is being tested, because what this new one does works Possibly arriving in WordPress 4.3, is offering a visual user experience and simple for the insertion of shortcodes .

] The best thing is that you can already install it as a plugin in any WordPress 4.1 and above to start testing it. It is very important, not only deals with the shortcodes as if it were an embedded object showing instantly what it is supposed to do, but it also offers a manager shorcodes to make your own collection of, of course, called Input Elements and insert them easily. Total Query

WP REST API

 WP REST API JSON REST API

Y , finally, we get to the WP REST API also known as the JSON REST API for friends. What is this? then the next WordPress revolution .

What the WP REST API is going to do is convert WordPress into a Framework from which, through JavaScript or any other language, it can be phased out. development in PHP and offer an interface so that, without leaving WordPress, create all kinds of content and modify them.

For example, you could use the WP REST API to improve any WordPress functionality based on JavaScript, such as: [19659031] themes or plugins backbone.js

  • infinite scrolls
  • validations and forms submission
  • edition of content on the cover page
  • Or also:

    • display content from another site within a multisite network
    • ] display content from another WordPress site
    • create or update content in another WordPress installation or in another multi-site network

    Actually the possibilities are huge, and they can certainly revolutionize the way of understanding and using WordPress leaving definitively the sanbenito blog system, becoming a fully professional platform .

    The plan is that be for WordPress 4.3, but you can already try with this plugin .

    Have you seen what the administration of WordPress.com is becoming? Well, you like it or not, that's where the shots go.

     editor wordpress.com


    And for now it's what it is. As I said at the beginning of the article, depending on what comes finally to WordPress 4.3 will be an update of walking around the house or a real revolution . There is not much left to find out.

    What do you think about the news?

    NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say that we have not warned you.

    Loading …

    That may also help you: