WordPress 4.7 is immanent, it’s that time we update our generators with new features added to core. Here is a review of the generators we updated with new 4.7 features.
Post Type Generator – Rest API
WordPress 4.7 added the REST API content endpoints support for posts, comments, terms, users, meta, and settings.
When you register new post types with register_post_type()
function you can define whether to add a new post type route to the REST API, or not. You can change the base URL of REST API route. And you can change the REST API controller class for the new post type.
Our Post Type Generator was updated with a new tab for the REST API features:
Taxonomy Generator – Rest API
The same principle applies for custom taxonomies registered using register_taxonomy()
. The Taxonomy Generator was updated too:
Theme Support Generator – Video Header
Upgrade to GenerateWP Premium Enjoy better WordPress generators Upgrade Now
WordPress 4.7 extends the custom-header feature to introduce support for video headers. It’s like header images, but with motion. Paring videos with images is the best practice, the image will be displayed until the video will start playing. This slick enhancement was added to our Theme Support Generator.
Post Type Generator – Labels
When registering new post types, you can define custom label. WordPress 4.7 added two new labels to the post types object, the view_items
and the attributes
labels. The Post Type Generator was updated accordingly.
Hooks Generator – New Hooks
WordPress 4.7 added a handful list of new filters and actions. We updated our Hooks Generator as well.
Happy coding!