wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



option_update_filter › WordPress Function

Da2.7.0
Deprecaton/a
option_update_filter ( $options )
Parametri:
  • (array) $options
    Richiesto:
Ritorna:
  • (array)
Definito a:
Codex:
ChangeLog:
  • 5.5.0

Refreshes the value of the allowed options list available via the 'allowed_options' hook.

See the {@see 'allowed_options'} filter.


Sorgenti

function option_update_filter( $options ) {
	global $new_allowed_options;

	if ( is_array( $new_allowed_options ) ) {
		$options = add_allowed_options( $new_allowed_options, $options );
	}

	return $options;
}