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_312', 10, 4 );
function filter_function_name_312( $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.


Since 4.6.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

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