Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
_wp_register_meta_args_whitelist( array $args, array $default_args )
Filter out register_meta() args based on a whitelist.
Description Description
register_meta() args may change over time, so requiring the whitelist to be explicitly turned off is a warranty seal of sorts.
Parameters Parameters
- $args
-
(array) (Required) Arguments from
register_meta(). - $default_args
-
(array) (Required) Default arguments for
register_meta().
Return Return
(array) Filtered arguments.
Source Source
File: wp-includes/meta.php
function _wp_register_meta_args_whitelist( $args, $default_args ) {
return array_intersect_key( $args, $default_args );
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |