WordPress at a glance
function is not described

_wp_register_meta_args_whitelist() WP 4.6.0

Filter 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().

Code of wp register meta args whitelist: wp-includes/meta.php VER 5.1.1

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