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

_wp_register_meta_args_allowed_list( array $args, array $default_args )

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

Description Description

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

Top ↑

Parameters Parameters


(array) (Required) Arguments from register_meta().


(array) (Required) Default arguments for register_meta().

Top ↑

Return Return

(array) Filtered arguments.

Top ↑

Source Source

File: wp-includes/meta.php

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

Top ↑

Changelog Changelog

Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.