WordPress at a glance
function is not described

_wp_register_meta_args_allowed_list() WP 5.5.0

Filters out register_meta() args based on an allowed list.

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

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

Array. Filtered arguments.

Usage

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

Changelog

Since 5.5.0 Introduced.

Code of _wp_register_meta_args_allowed_list() WP 5.7.2

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