WordPress at a glance
filter is not described

register_meta_args filter-hook . WP 4.6.0

Filters the registration arguments when registering meta.


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;
Array of meta registration arguments.
Array of default arguments.
Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
Meta key.

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

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

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

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