Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Filters out register_meta() args based on a whitelist.

Syntax Syntax

_wp_register_meta_args_whitelist( array $args, array $default_args )

Description Description

register_meta() args may change over time, so requiring the whitelist to be explicitly turned off is a warranty seal of sorts.

Parameters Parameters


(Required) Arguments from register_meta().


(Required) Default arguments for register_meta().

Return Return

(array) Filtered arguments.

Source Source

File: wp-includes/meta.php

function filter_default_metadata( $value, $object_id, $meta_key, $single, $meta_type ) {
	global $wp_meta_keys;


Changelog Changelog

Version Description
4.6.0 Introduced.


Leave a Reply