Filters out register_meta()
args based on an allowed list.
Description
register_meta()
args may change over time, so requiring the allowed list to be explicitly turned off is a warranty seal of sorts.
Parameters
$args
arrayrequired- Arguments from
register_meta()
. $default_args
arrayrequired- Default arguments for
register_meta()
.
Source
function _wp_register_meta_args_allowed_list( $args, $default_args ) {
return array_intersect_key( $args, $default_args );
}
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.