_wp_register_meta_args_whitelist()WP 4.6.0

Deprecated from version 5.5.0. It is no longer supported and can be removed in future releases. Use _wp_register_meta_args_allowed_list(). Please consider writing more inclusive code instead.

Filters out register_meta() based on an allowed list.

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

Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.

No Hooks.


Array. Filtered arguments.


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


Since 4.6.0 Introduced.
Deprecated since 5.5.0 Use _wp_register_meta_args_allowed_list() instead.
Please consider writing more inclusive code.

_wp_register_meta_args_whitelist() code WP 6.4.1

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 );