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.

Return

Array. Filtered arguments.

Usage

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

Changelog

Since 4.6.0 Introduced.

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

<?php
function _wp_register_meta_args_whitelist( $args, $default_args ) {
	return array_intersect_key( $args, $default_args );
}