WordPress at a glance
filter is not described

register_meta_args filter-hook . WP 4.6.0

Filters the registration arguments when registering meta.

Usage

add_filter( 'register_meta_args', 'filter_function_name_1190', 10, 4 );
function filter_function_name_1190( $args, $defaults, $object_type, $meta_key ){
	// filter...

	return $args;
}
$args(array)
Array of meta registration arguments.
$defaults(array)
Array of default arguments.
$object_type(string)
Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
$meta_key(string)
Meta key.

Список изменений

С версии 4.6.0 Введена.

Где вызывается хук

register_meta()
register_meta_args
wp-includes/meta.php 1324
$args = apply_filters( 'register_meta_args', $args, $defaults, $object_type, $meta_key );

Где используется хук в ядре WP

wp-includes/default-filters.php 99
add_filter( 'register_meta_args', '_wp_register_meta_args_allowed_list', 10, 2 );