X Features Cars Demo Power Plants Demo State Parks Demo Site Showcase Docs Tutorials Add-ons Buy

FacetWP and WordPress 5.0: What You Need to Know

The Problem

WordPress 5.0 includes a javascript library called wp.hooks. FacetWP has been using a similar library of the same name (wp.hooks) for several years. Unfortunately, the two versions aren’t compatible.

The Solution

We’ve renamed our library to FWP.hooks and have released updates to FacetWP (version 3.2.11) and all affected add-ons:

We encourage you to update to the latest version(s) as soon as possible.

What about custom code?

If you’re using any custom (javascript) code that makes use of wp.hooks, this will unfortunately need to be corrected manually.

Before:

wp.hooks.addFilter('facetwp/refresh/checkboxes', function() { /* do something */ });

After:

FWP.hooks.addFilter('facetwp/refresh/checkboxes', function() { /* do something */ });

The State of WordPress 5.0 (Gutenberg)

Gutenberg is the new editor that the WordPress core team has been developing for about 2 years. As of the time of this writing (December 5, 2018), Gutenberg is still a plugin.

WordPress 5.0 is scheduled to ship tomorrow (December 6, 2018) with Gutenberg built-in. This will likely cause a huge shift in the WordPress community. Gutenberg replaces the familiar WYSIWYG editor with a new block-based UI.