Uma área de pesquisa sobre o WordPress para devs e autores do tema



_wp_register_meta_args_whitelist ›

Desde4.6.0
Obsoleton/a
_wp_register_meta_args_whitelist ( $args, $default_args )
Acesso:
  • private
Parâmetros: (2)
  • (array) $args Arguments from `register_meta()`.
    Required: Yes
  • (array) $default_args Default arguments for `register_meta()`.
    Required: Yes
Retorna:
  • (array) Filtered arguments.
Definido em:
Codex:

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.



Fonte

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