Registering default values for meta data

With WordPress 5.5, the register_meta() functions ( including register_post_meta() ) now support registering default values. Previously it was only possible to register default values for the REST API schema like this: However, this would only be applied to calls made from within the REST API – calls to get_post_meta() would not use this default value. Now it is … Continue reading Registering default values for meta data