WordPress weekly recap #30: Registering metadata in 4.9.8 and more

WordPress 4.9.8 introduces a way to register metadata for specific object subtypes, instead of only for whole object types like all post types.

As I needed to skip the last two recaps, I will include posts from that two weeks, which I think are important enough, with the posts from the current week 30 into this post.

Core

Registering metadata in 4.9.8

WordPress 4.9.8 adds the ability to register metadata for a specific object subtype, like a specific post type, instead only for a specific object type.

To achieve that, the register_meta() function now supports a object_subtype argument in the args array. Additionally, there are two new functions register_post_meta() and register_term_meta() that take the post type or taxonomy as the first parameter, followed by the meta key and additional arguments as an array. Internally, they are wrappers for register_meta() and are the recommended way to register meta for post types and terms.

More information on that can be found in the post »Registering Metadata in 4.9.8« by Felix Arntz.

Misc

Design

Misc

Mobile

Misc

Polyglots

Misc

Support

Misc

Docs

Misc

Community

Misc

Marketing

Misc

WP-CLI

Misc

From the WordPress.org blog

Related posts

Leave a Comment

Your email address will not be published. Required fields are marked *