Title: _wp_register_meta_args_allowed_list
Published: August 11, 2020
Last modified: May 20, 2026

---

# _wp_register_meta_args_allowed_list( array $args, array $default_args ): array

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Filters out `register_meta()` args based on an allowed list.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#description)󠁿

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#parameters)󠁿

 `$args`arrayrequired

Arguments from `register_meta()`.

`$default_args`arrayrequired

Default arguments for `register_meta()`.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#return)󠁿

 array Filtered arguments.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#source)󠁿

    ```php
    function _wp_register_meta_args_allowed_list( $args, $default_args ) {
    	return array_intersect_key( $args, $default_args );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/meta.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/meta.php#L1784)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/meta.php#L1784-L1786)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#related)󠁿

| Used by | Description | 
| [_wp_register_meta_args_whitelist()](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_whitelist/)`wp-includes/deprecated.php` |

Filters out `register_meta()` args based on an allowed list.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/_wp_register_meta_args_allowed_list/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_wp_register_meta_args_allowed_list%2F)
before being able to contribute a note or feedback.