WordPress 4.4: 10 Coolest New Features You Should Know

WordPress 4.4 has usually been expelled currently and we played around with this latest new charity to see what new glossy facilities we could find. This new chronicle is shipped with utterly a few improvements that are set to make WordPress developers go crazy. It competence even eventually figure a destiny of WordPress in a JavaScript-centric era.

In this post we will be looking during 10 new WordPress 4.4 facilities we should be checking out.

1. Embed Posts Anywhere

For years, we can hide calm on your website, like a YouTube video or a twitter around a use of a underline called oEmbed. Well, a good news is WordPress has adopted this underline in 4.4 and we can now simply hide calm anywhere on your site usually by grabbing a URL of a post and pasting it into a calm editor. A preview of a post that we hide will seem on your page, something like this:

If for some reason, we feel that we don’t wish to use this feature, afterwards we can invalidate it by installing a disable embeds plugin.

2. Work With Responsive images

As inclination and their screens grow larger, designers contingency work with incomparable images as well. The bad news is that this contributes to slower page loading times. So it’s substantially good timing that WordPress now supports manageable images on your theme.

Test picture regulating Responsive Web Design Testing Tool

In this refurbish WordPress has combined dual some-more atributes to your images on tip of difficulty attributes for fixing (left, core or right): srcset and sizes. These attributes concede a images on post thumbnails, print galleries and other images to be delivered in a scold distance formed on a viewport.

Thus, on any picture we will see a outlay source formula like so:

img class="alignnone size-full wp-image-15 below-entry-meta" src="http://yoursite.com/wp-content/uploads/2015/11/horse.png" alt="horse" srcset="http://yoursite.com/wp-content/uploads/2015/11/horse-300x217.png 300w, http://yoursite.com/wp-content/uploads/2015/11/horse-768x556.png 768w, http://yoursite.com/wp-content/uploads/2015/11/horse.png 868w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" height="628" width="868"

3. New Theme: Twenty Sixteen

Twenty Sixteen is a code new default thesis for WordPress 4.4. It is designed to take on a normal blogging format.

Twenty Sixteen works perfecty for blogs or websites, featuring discretionary sidebars, tradition tone options with pleasing default tone schemes, agreeable liquid grid, crawl displaying vast images, ability to supplement intro to post regulating tradition excerpt, and other discriminating features.

4. Introduction to a REST API

WordPress 4.4 brings a REST API infrastructure into a Core. This API handles a routing, evidence handling, JSON serialisation, standing codes, as good as functions to emanate tradition REST API endpoints. This is illusory news for developers. With this infrastrucure developers are finally means to build their possess APIs for their themes, plugins, even mobile or desktop apps.

Head over to this page, Adding Custom Endpoints, to learn how to register a tradition API endpoint.

5. Custom Term Taxonomy Meta

In prior versions of WordPress we can add tradition margin to a post and pages by a tenure meta. Now WordPress has combined this underline to taxonomy objects.

For instance on a Category taxonomy we competence wish to supplement a tradition field, namely category image to underline a post’s featured picture on any category. In this chronicle we can do this by creation use of a following functions: add_term_meta(), update_term_meta(), delete_term_meta(), and get_term_meta().

6. Single Post Template File

In this version, WordPress enclosed a new template record on thesis hierarchy to be used as a singular post or tradition post type. This underline is useful when we are targeting a specific post, to give ‘special’ styles to that page so it will demeanour opposite from other pages. You will have a template record with a name like below:

single-{post_type}-{post_name}.php

For example, here we have a tradition post form named book that we wish to debonair adult for a “bestseller book” post. So we creat single-book-bestseller.php afterwards tweak a character to be practical to this page only. Lastly, we change a post knock to yoursite.com/book/bestseller to request a special page.

LEFT: Standard book post, RIGHT: Best seller book post

7. Improved Comments

WordPress has done rearrangements on a criticism form, where a criticism margin is displayed first, afterwards a name and email fields below. This alleviation was a answer to a emanate that a comment poise is different for logged in and logged out user.

On a backend, a criticism now is represented by a WP_Comment object. This enables we to outlay comments in a some-more object-oriented (OOP) approach with some-more absolute criticism queries.

8. Heading Hierarchy

WordPress is improving streamer hierarchy on a dashboard shade with a aim to support users with assistive technologies such as shade readers. This is critical since a assistive technologies use these headings to find information and a keyboard to navigate to applicable content.

Suppose they use a 1 pivotal to burst to a initial h1 afterwards press 2 to burst to h2. With a scold streamer hierarchy there will be no streamer levels missed.

With this revamp, a page such as wp-admin/edit.php will now have Posts as h1 , and “Filter posts list” and “Posts list” as h2, that are visually dark with a .screen-reader-text CSS class.

When a shade reader is activated, afterwards a dark h2 will be read.

9. Multisite: Adding WP_Network

WordPress introduced a new intent WP_Network to make it easy to correlate in a multisite network. This difficulty is used during loading to stock a $current_site tellurian non-static and setup a stream network .

There are other new functions entrance to chronicle 4.4 to stock network options; they are add_network_option(),update_network_option(), get_network_option(), and delete_network_option().

10. Faster Customizer Load Time

In WordPress 4.4 there are improvements that bucket customizer options approach faster. Some of these improvements embody shortening a Customizer’s rise memory use and deferring a embedding of a Customizer widget controls until a widget area is stretched and widget controls indeed shown to a user. This delivers a loading time that is 10 times faster. Another alleviation in JavaScript inline docs to helps developers know how it works.

Add Comment