Blog

New WordPress 4.7 Features in GenerateWP

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:

 

Post Type Generator - Rest API arguments
Post Type Generator – Rest API arguments

 

Taxonomy Generator – Rest API

The same principle applies for custom taxonomies registered using register_taxonomy(). The Taxonomy Generator was updated too:

 

Taxonomy Generator - Rest API arguments
Taxonomy Generator – Rest API arguments

 

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.

 

Theme Support - Custom Header Videos
Theme Support – Custom Header Videos

 

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.

 

Post Type Generator - New Labels
Post Type Generator – New Labels

 

Hooks Generator – New Hooks

WordPress 4.7 added a handful list of new filters and actions. We updated our Hooks Generator as well.

 

Hooks Generator - New filters and actions
Hooks Generator – New filters and actions

 

Happy coding!

Rami Yushuvaev

I’m an entrepreneur, a web developer and a blogger. I’ve contributed code to each and every release since WordPress 2.8. I’m the Hebrew GTE responsible for the translation and the release of WordPress Hebrew version. The founder GenerateWP.com and several other WordPress related projects. I work mainly with Israeli startups, providing plugin development services.

Leave a Reply