WordPress at a glance
function is not described

_wp_register_meta_args_whitelist() WP 4.6.0

Filters out register_meta() args based on a whitelist.

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

No Hooks.


Array. Filtered arguments.


_wp_register_meta_args_whitelist( $args, $default_args );
$args(array) (required)
Arguments from register_meta().
$default_args(array) (required)
Default arguments for register_meta().


Since 4.6.0 Introduced.

Code of wp register meta args whitelist: wp-includes/meta.php WP 5.4.1

function _wp_register_meta_args_whitelist( $args, $default_args ) {
	return array_intersect_key( $args, $default_args );