A WordPress-centric search engine for devs and theme authors



_wp_register_meta_args_allowed_list ›

Since5.5.0
Deprecatedn/a
_wp_register_meta_args_allowed_list ( $args, $default_args )
Access:
  • private
Parameters: (2)
  • (array) $args Arguments from `register_meta()`.
    Required: Yes
  • (array) $default_args Default arguments for `register_meta()`.
    Required: Yes
Returns:
  • (array) Filtered arguments.
Defined at:
Codex:

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

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


Source

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