_wp_register_meta_args_whitelist


_wp_register_meta_args_whitelist ( $args, $default_args )

Access:
  • private
Parameters:
  • (array) $args Arguments from `register_meta()`.
  • (array) $default_args Default arguments for `register_meta()`.
Returns:
  • (array) Filtered arguments.
Defined at:

Description

Filter out `register_meta()` args based on a whitelist.

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

Related Functions

wp_register_sidebar_widget, wp_unregister_sidebar_widget, register_sidebar_widget, registered_meta_key_exists, rest_api_register_rewrites

Top Google Results

User discussions

wpseek mobile