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.
$argsarrayrequired
register_meta().$default_argsarrayrequired
register_meta().function _wp_register_meta_args_whitelist( $args, $default_args ) {
_deprecated_function( __FUNCTION__, '5.5.0', '_wp_register_meta_args_allowed_list()' );
return _wp_register_meta_args_allowed_list( $args, $default_args );
}
| Version | Description |
|---|---|
| 5.5.0 | Use _wp_register_meta_args_allowed_list() instead. Please consider writing more inclusive code. |
| 4.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_wp_register_meta_args_whitelist