On 16 August 2016, WordPress 4.6 (codenamed "Pepper") was released to the public. As with every release of the CMS, there's a lot to review when it comes to what has been updated or introduced.
Some of the changes are under the hood or related to the performance of the application. Others are purely focused on the developer or the designer. And then there are updates that apply to everyone, especially bloggers and content managers, who use the application.
In this post, I'm going to examine as many new features and improvements as possible. Further, I'm going to break this down into features relevant for developer-types and content manager-types. That way, if you know, for example, you're not interested in a new API, then you can skip the section.
On the other hand, if you're looking to learn something new that might enhance your WordPress development skills, then perhaps this is just the tutorial to help with exactly that.
Before we get into an explanation of many of the new features, let's take a look at the promotional and introductory video for WordPress 4.6:
As you can see in the video, the update is named (as are all of the WordPress releases) after a jazz legend—in this case Pepper Adams. The video highlights the following features:
Ultimately, the goal of the release is as stated:
A focused release that gets you where you need to go faster.
With that as our introduction, let's take a deep dive into all of the above (and even some of the things that weren't mentioned).
Before digging into the more technical updates, I think it's useful to look at updates that apply to everyone who uses WordPress regardless of whether you're a blogger, content-manager, developer, or designer.
After all, WordPress is first and foremost an application for managing content, and that's its widest appeal. So, with that said, let's take a look at some of the features that are now available for everyone who uses the application for publishing content.
As a user, one of the more jarring experiences that we've previously experienced with WordPress is how it managed updating plugins and themes.
Specifically, the process worked something like this:
In some cases, this required that we activate a theme or a plugin.
In WordPress 4.6, this is no longer a problem. For those who have been following the Shiny Updates project, you'll now see this as part of the core application.
This means that all of the steps above are no longer required. Instead, everything happens inline, without any additional work on our end.
Starting in WordPress 3.8, the core application used Google Fonts to help create a consistent experience in the admin for all users regardless of their operating system.
But that was three years ago, and the web moves pretty fast. In WordPress 4.6, the core application uses native system fonts. Not only will this look great on your operating system of choice, but it also breaks a dependency on downloading the fonts when rendering your administration screens.
This means a more native look and feel and much faster page performance.
For those who write multiple times per day, per week, per month, or at whatever frequency suits your hobby or your business, you likely spend a lot of time linking to other content.
And why wouldn't you? Tying your content to other posts and pages on your blog or other sites around the web helps give your readers even more context to what you're talking about as well as other places they can go to learn more about topics you're discussing.
But there's a problem in doing this: What if the content no longer exists? Or what if the link you've provided sends your readers to a page that doesn't exist?
In WordPress 4.6, this problem has been mitigated. Specifically, there is a built-in broken link checker such that when you attempt to link a word or phrase to a URL, WordPress will check to see if the post exists. If it doesn't, then it will provide you with a clear indicator as such.
It's a nice addition, especially for those who write and link frequently. Of course, I still caution anyone using a feature like this to make sure they are verifying links even if they appear to be valid links.
For those of you who are more technical—perhaps you're just curious about what's happened in the core software or you're someone who wants to take advantage of the latest code in the application—here's a list of everything that's made it into the 4.6 release.
Link
ElementsAs defined in the W3C specification, a resource hint:
defines the dns-prefetch, preconnect, prefetch, and prerender relationships of the HTML Link Element (<link>)
Note this is not to be confused with the anchor element (or the <a>
tag). Regardless, seeing support for these types of attributes, having them available via a filter (if that's needed), and having it integrated into WordPress core is nice.
As the W3C continues to add these types of specifications and browsers begin to adopt them, we can only continue to see improvements with our web-based projects.
For many, working with the HTTP API is a standard part of any project, especially when working in the context of larger solutions, be it a full site, a web application, or an advanced plugin.
Regardless, the updates to the HTTP API introduce:
At least one of these, if not most, should be welcomed by anyone who has been working with making requests to other domains, especially with the proliferation of international domains becoming so commonplace with many modern sites.
WP_Term_Query
and WP_Post_Type
There are two new classes that have been introduced to WordPress core which, for object-oriented developers, is likely a welcome change. In short, here's what you can expect:
WP_Term_Query
is a class that makes it easier and more flexible to query term information. This is an excellent follow-up to the previous addition to the term metadata tables from the last release of WordPress.WP_Post_Type
is another new class that aims to make interacting with post types a bit more predictable than in previous iterations of WordPress.Because WordPress has a commitment to backward compatibility, a lot of work is required to introduce a class, break old code into its functions, and so on.
I'm eager to see these classes mature even more with future versions of WordPress.
For those who work with metadata (be it post metadata, user metadata, comment metadata, or term metadata), there have been improvements made to these APIs, as well.
In short, the API has been expanded such that they now support types, descriptions, and even visibility with the REST API. But what does this mean, practically speaking?
The primary register_meta
function now supports three arguments, with the last being an array. This single array should include some different pieces of information in the format of key/values (which most WordPress developers should be used to seeing when working with WordPress at this point):
sanitize_callback
should point to a method that will be responsible for sanitizing the incoming metadata.auth_callback
should refer to a method that will provide all authorization functionality.object_subtype
refers to a string that contains the slug of the object's subtype (which should be evident by the key's name). If there's no subtype, then an instance of WP_Error
will be returned.type
refers to a string indicating which type of meta value is to be saved. Though it's not restricted to a list of types, it's helpful and safer to stick to the known data types such as string
, boolean
, and integer
.description
is nothing more than a string that describes the type of meta information that is to be written to the database.single
is a flag that indicates whether or not the caller should expect one or multiple values to be returned when working with some of the get_*_meta
functions.show_in_rest
states whether or not this should be exposed as part of a given post's REST API endpoint. According to this page, "Consider this experimental until the WordPress REST API provides support for meta."One of the more subtle, yet exciting features available in WordPress core is support for automatically loading translations for certain projects.
Specifically, this means that themes and plugins available in the WordPress.org repositories will automatically load the translations for their respective locales as soon as they are available via the community of translators.
Of course, this is predicated on the idea that your themes are properly internationalized. Furthermore, if you're not planning to deploy your projects into the WordPress repositories, then you still need to make sure the translation files are available in your project.
As The Customizer (once The Theme Customizer) continues to mature, developers now have an API that supports validation constraints. Walking through the available APIs would take a tutorial all of its own so I won't be going into detail about them in this particular article.
If you're a theme developer or someone who leverages The Customizer in your day-to-day work, then I think it's worth reading this very in-depth article to get an idea of how it works as well as how to add validation on the client side and the server side. It's also worth reading to get an understanding of how the notifications API works.
Furthermore, we're able to work with validation errors (rather than failing silently) so that we can easily notify our users when something doesn't work appropriately.
And finally, for those who do lots of work with WordPress Multisite, some changes have been introduced that should significantly improve the performance for the variant of the application.
Specifically, the addition of the WP_Site_Query
class and the WP_Network_Query
class will help you write queries specifically geared toward a particular site or the entire network.
You can read all about Pepper Adams on Wikipedia. Perhaps the best introduction to the musician is in the first paragraph:
[Pepper] was an American jazz baritone saxophonist and composer. He composed 43 pieces, was the leader on eighteen albums spanning 28 years, and participated in 600 sessions as a sideman.
With, of course, much more information coming later in the article. But if you're interested in Pepper's music, feel free to check out the following video:
If nothing else, it's a neat way to expose yourself to music you may already like or discover something you've yet to try out.
And there you have it: a complete rundown of everything that you can expect to see, leverage, and enjoy in WordPress 4.6. There are a lot of tremendous changes on performance and a handful of new features introduced specifically for developers.
For those who may just be getting started with WordPress, it's an exciting time! If you're interested in being brought up to speed, you can check out some of my courses and tutorials on my profile page. You can also follow me on my blog and/or Twitter at @tommcfarlin where I talk about various software development practices and how we can employ them in WordPress, as well as tweeting about the occasionally random or funny thing.
If you have any questions, comments, or additions to anything above, then please don't hesitate to leave them in the comments below.
register_meta
ImprovementsCreate Modern Vue Apps Using Create-Vue and Vite
/Pros and Cons of Using WordPress
/How to Fix the “There Has Been a Critical Error in Your Website” Error in WordPress
/How To Fix The “There Has Been A Critical Error in Your Website” Error in WordPress
/How to Create a Privacy Policy Page in WordPress
/How Long Does It Take to Learn JavaScript?
/The Best Way to Deep Copy an Object in JavaScript
/Adding and Removing Elements From Arrays in JavaScript
/Create a JavaScript AJAX Post Request: With and Without jQuery
/5 Real-Life Uses for the JavaScript reduce() Method
/How to Enable or Disable a Button With JavaScript: jQuery vs. Vanilla
/How to Enable or Disable a Button With JavaScript: jQuery vs Vanilla
/Confirm Yes or No With JavaScript
/How to Change the URL in JavaScript: Redirecting
/15+ Best WordPress Twitter Widgets
/27 Best Tab and Accordion Widget Plugins for WordPress (Free & Premium)
/21 Best Tab and Accordion Widget Plugins for WordPress (Free & Premium)
/30 HTML Best Practices for Beginners
/31 Best WordPress Calendar Plugins and Widgets (With 5 Free Plugins)
/25 Ridiculously Impressive HTML5 Canvas Experiments
/How to Implement Email Verification for New Members
/How to Create a Simple Web-Based Chat Application
/30 Popular WordPress User Interface Elements
/Top 18 Best Practices for Writing Super Readable Code
/Best Affiliate WooCommerce Plugins Compared
/18 Best WordPress Star Rating Plugins
/10+ Best WordPress Twitter Widgets
/20+ Best WordPress Booking and Reservation Plugins
/Working With Tables in React: Part Two
/Best CSS Animations and Effects on CodeCanyon
/30 CSS Best Practices for Beginners
/How to Create a Custom WordPress Plugin From Scratch
/10 Best Responsive HTML5 Sliders for Images and Text… and 3 Free Options
/16 Best Tab and Accordion Widget Plugins for WordPress
/18 Best WordPress Membership Plugins and 5 Free Plugins
/25 Best WooCommerce Plugins for Products, Pricing, Payments and More
/10 Best WordPress Twitter Widgets
1 /12 Best Contact Form PHP Scripts for 2020
/20 Popular WordPress User Interface Elements
/10 Best WordPress Star Rating Plugins
/12 Best CSS Animations on CodeCanyon
/12 Best WordPress Booking and Reservation Plugins
/12 Elegant CSS Pricing Tables for Your Latest Web Project
/24 Best WordPress Form Plugins for 2020
/14 Best PHP Event Calendar and Booking Scripts
/Getting Started With Django: Newly Updated Course
/Create a Blog for Each Category or Department in Your WooCommerce Store
/8 Best WordPress Booking and Reservation Plugins
/Best Exit Popups for WordPress Compared
/Best Exit Popups for WordPress Compared
/11 Best Tab & Accordion WordPress Widgets & Plugins
/12 Best Tab & Accordion WordPress Widgets & Plugins
1 /New Course: Practical React Fundamentals
/Preview Our New Course on Angular Material
/Build Your Own CAPTCHA and Contact Form in PHP
/Object-Oriented PHP With Classes and Objects
/Best Practices for ARIA Implementation
/Accessible Apps: Barriers to Access and Getting Started With Accessibility
/Dramatically Speed Up Your React Front-End App Using Lazy Loading
/15 Best Modern JavaScript Admin Templates for React, Angular, and Vue.js
/15 Best Modern JavaScript Admin Templates for React, Angular and Vue.js
/19 Best JavaScript Admin Templates for React, Angular, and Vue.js
/New Course: Build an App With JavaScript and the MEAN Stack
/10 Best WordPress Facebook Widgets
13 /Hands-on With ARIA: Accessibility for eCommerce
/New eBooks Available for Subscribers
/Hands-on With ARIA: Homepage Elements and Standard Navigation
/Site Accessibility: Getting Started With ARIA
/How Secure Are Your JavaScript Open-Source Dependencies?
/New Course: Secure Your WordPress Site With SSL
/Testing Components in React Using Jest and Enzyme
/Testing Components in React Using Jest: The Basics
/15 Best PHP Event Calendar and Booking Scripts
/Create Interactive Gradient Animations Using Granim.js
/How to Build Complex, Large-Scale Vue.js Apps With Vuex
1 /Examples of Dependency Injection in PHP With Symfony Components
/Set Up Routing in PHP Applications Using the Symfony Routing Component
1 /A Beginner’s Guide to Regular Expressions in JavaScript
/Introduction to Popmotion: Custom Animation Scrubber
/Introduction to Popmotion: Pointers and Physics
/New Course: Connect to a Database With Laravel’s Eloquent ORM
/How to Create a Custom Settings Panel in WooCommerce
/Building the DOM faster: speculative parsing, async, defer and preload
1 /20 Useful PHP Scripts Available on CodeCanyon
3 /How to Find and Fix Poor Page Load Times With Raygun
/Introduction to the Stimulus Framework
/Single-Page React Applications With the React-Router and React-Transition-Group Modules
12 Best Contact Form PHP Scripts
1 /Getting Started With the Mojs Animation Library: The ShapeSwirl and Stagger Modules
/Getting Started With the Mojs Animation Library: The Shape Module
/Getting Started With the Mojs Animation Library: The HTML Module
/Project Management Considerations for Your WordPress Project
/8 Things That Make Jest the Best React Testing Framework
/Creating an Image Editor Using CamanJS: Layers, Blend Modes, and Events
/New Short Course: Code a Front-End App With GraphQL and React
/Creating an Image Editor Using CamanJS: Applying Basic Filters
/Creating an Image Editor Using CamanJS: Creating Custom Filters and Blend Modes
/Modern Web Scraping With BeautifulSoup and Selenium
/Challenge: Create a To-Do List in React
1 /Deploy PHP Web Applications Using Laravel Forge
/Getting Started With the Mojs Animation Library: The Burst Module
/10 Things Men Can Do to Support Women in Tech
/A Gentle Introduction to Higher-Order Components in React: Best Practices
/Challenge: Build a React Component
/A Gentle Introduction to HOC in React: Learn by Example
/A Gentle Introduction to Higher-Order Components in React
/Creating Pretty Popup Messages Using SweetAlert2
/Creating Stylish and Responsive Progress Bars Using ProgressBar.js
/18 Best Contact Form PHP Scripts for 2022
/How to Make a Real-Time Sports Application Using Node.js
/Creating a Blogging App Using Angular & MongoDB: Delete Post
/Set Up an OAuth2 Server Using Passport in Laravel
/Creating a Blogging App Using Angular & MongoDB: Edit Post
/Creating a Blogging App Using Angular & MongoDB: Add Post
/Introduction to Mocking in Python
/Creating a Blogging App Using Angular & MongoDB: Show Post
/Creating a Blogging App Using Angular & MongoDB: Home
/Creating a Blogging App Using Angular & MongoDB: Login
/Creating Your First Angular App: Implement Routing
/Persisted WordPress Admin Notices: Part 4
/Creating Your First Angular App: Components, Part 2
/Persisted WordPress Admin Notices: Part 3
/Creating Your First Angular App: Components, Part 1
/How Laravel Broadcasting Works
/Persisted WordPress Admin Notices: Part 2
/Create Your First Angular App: Storing and Accessing Data
/Persisted WordPress Admin Notices: Part 1
/Error and Performance Monitoring for Web & Mobile Apps Using Raygun
/Using Luxon for Date and Time in JavaScript
7 /How to Create an Audio Oscillator With the Web Audio API
/How to Cache Using Redis in Django Applications
/20 Essential WordPress Utilities to Manage Your Site
/Beginner’s Guide to Angular 4: HTTP
/Rapid Web Deployment for Laravel With GitHub, Linode, and RunCloud.io
/Beginners Guide to Angular 4: Routing
/Beginner’s Guide to Angular 4: Services
/Beginner’s Guide to Angular 4: Components
/Creating a Drop-Down Menu for Mobile Pages
/Introduction to Forms in Angular 4: Writing Custom Form Validators
/10 Best WordPress Booking & Reservation Plugins
/Getting Started With Redux: Connecting Redux With React
/Getting Started With Redux: Learn by Example
/Getting Started With Redux: Why Redux?
/Understanding Recursion With JavaScript
/How to Auto Update WordPress Salts
/How to Download Files in Python
/Eloquent Mutators and Accessors in Laravel
1 /10 Best HTML5 Sliders for Images and Text
/Creating a Task Manager App Using Ionic: Part 2
/Creating a Task Manager App Using Ionic: Part 1
/Introduction to Forms in Angular 4: Reactive Forms
/Introduction to Forms in Angular 4: Template-Driven Forms
/24 Essential WordPress Utilities to Manage Your Site
/25 Essential WordPress Utilities to Manage Your Site
/Get Rid of Bugs Quickly Using BugReplay
1 /Manipulating HTML5 Canvas Using Konva: Part 1, Getting Started
/10 Must-See Easy Digital Downloads Extensions for Your WordPress Site
/22 Best WordPress Booking and Reservation Plugins
/Understanding ExpressJS Routing
/15 Best WordPress Star Rating Plugins
/Creating Your First Angular App: Basics
/Inheritance and Extending Objects With JavaScript
/Introduction to the CSS Grid Layout With Examples
1Performant Animations Using KUTE.js: Part 5, Easing Functions and Attributes
Performant Animations Using KUTE.js: Part 4, Animating Text
/Performant Animations Using KUTE.js: Part 3, Animating SVG
/New Course: Code a Quiz App With Vue.js
/Performant Animations Using KUTE.js: Part 2, Animating CSS Properties
Performant Animations Using KUTE.js: Part 1, Getting Started
/10 Best Responsive HTML5 Sliders for Images and Text (Plus 3 Free Options)
/Single-Page Applications With ngRoute and ngAnimate in AngularJS
/Deferring Tasks in Laravel Using Queues
/Site Authentication in Node.js: User Signup and Login
/Working With Tables in React, Part Two
/Working With Tables in React, Part One
/How to Set Up a Scalable, E-Commerce-Ready WordPress Site Using ClusterCS
/New Course on WordPress Conditional Tags
/TypeScript for Beginners, Part 5: Generics
/Building With Vue.js 2 and Firebase
6 /Essential JavaScript Libraries and Frameworks You Should Know About
/Vue.js Crash Course: Create a Simple Blog Using Vue.js
/Build a React App With a Laravel RESTful Back End: Part 1, Laravel 5.5 API
/API Authentication With Node.js
/Beginner’s Guide to Angular: Routing
/Beginners Guide to Angular: Routing
/Beginner’s Guide to Angular: Services
/Beginner’s Guide to Angular: Components
/How to Create a Custom Authentication Guard in Laravel
/Learn Computer Science With JavaScript: Part 3, Loops
/Build Web Applications Using Node.js
/Learn Computer Science With JavaScript: Part 4, Functions
/Learn Computer Science With JavaScript: Part 2, Conditionals
/Create Interactive Charts Using Plotly.js, Part 5: Pie and Gauge Charts
/Create Interactive Charts Using Plotly.js, Part 4: Bubble and Dot Charts
/Create Interactive Charts Using Plotly.js, Part 3: Bar Charts
/Awesome JavaScript Libraries and Frameworks You Should Know About
/Create Interactive Charts Using Plotly.js, Part 2: Line Charts
/Bulk Import a CSV File Into MongoDB Using Mongoose With Node.js
/Build a To-Do API With Node, Express, and MongoDB
/Getting Started With End-to-End Testing in Angular Using Protractor
/TypeScript for Beginners, Part 4: Classes
/Object-Oriented Programming With JavaScript
/10 Best Affiliate WooCommerce Plugins Compared
/Stateful vs. Stateless Functional Components in React
/Make Your JavaScript Code Robust With Flow
/Build a To-Do API With Node and Restify
/Testing Components in Angular Using Jasmine: Part 2, Services
/Testing Components in Angular Using Jasmine: Part 1
/Creating a Blogging App Using React, Part 6: Tags
/React Crash Course for Beginners, Part 3
/React Crash Course for Beginners, Part 2
/React Crash Course for Beginners, Part 1
/Set Up a React Environment, Part 4
1 /Set Up a React Environment, Part 3
/New Course: Get Started With Phoenix
/Set Up a React Environment, Part 2
/Set Up a React Environment, Part 1
/Command Line Basics and Useful Tricks With the Terminal
/How to Create a Real-Time Feed Using Phoenix and React
/Build a React App With a Laravel Back End: Part 2, React
/Build a React App With a Laravel RESTful Back End: Part 1, Laravel 9 API
/Creating a Blogging App Using React, Part 5: Profile Page
/Pagination in CodeIgniter: The Complete Guide
/JavaScript-Based Animations Using Anime.js, Part 4: Callbacks, Easings, and SVG
/JavaScript-Based Animations Using Anime.js, Part 3: Values, Timeline, and Playback
/Learn to Code With JavaScript: Part 1, The Basics
/10 Elegant CSS Pricing Tables for Your Latest Web Project
/Getting Started With the Flux Architecture in React
/Getting Started With Matter.js: The Composites and Composite Modules
Getting Started With Matter.js: The Engine and World Modules
/10 More Popular HTML5 Projects for You to Use and Study
/Understand the Basics of Laravel Middleware
/Iterating Fast With Django & Heroku
/Creating a Blogging App Using React, Part 4: Update & Delete Posts
/Creating a jQuery Plugin for Long Shadow Design
/How to Register & Use Laravel Service Providers
2 /Unit Testing in React: Shallow vs. Static Testing
/Creating a Blogging App Using React, Part 3: Add & Display Post
/Creating a Blogging App Using React, Part 2: User Sign-Up
20 /Creating a Blogging App Using React, Part 1: User Sign-In
/Creating a Grocery List Manager Using Angular, Part 2: Managing Items
/9 Elegant CSS Pricing Tables for Your Latest Web Project
/Dynamic Page Templates in WordPress, Part 3
/Angular vs. React: 7 Key Features Compared
/Creating a Grocery List Manager Using Angular, Part 1: Add & Display Items
New eBooks Available for Subscribers in June 2017
/Create Interactive Charts Using Plotly.js, Part 1: Getting Started
/The 5 Best IDEs for WordPress Development (And Why)
/33 Popular WordPress User Interface Elements
/New Course: How to Hack Your Own App
/How to Install Yii on Windows or a Mac
/What Is a JavaScript Operator?
/How to Register and Use Laravel Service Providers
/
waly Good blog post. I absolutely love this…