wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



option_update_filter › WordPress Function

Depuis2.7.0
Dépréciéen/a
option_update_filter ( $options )
Paramètres:
  • (array) $options
    Requis: Oui
Retourne:
  • (array)
Défini(e) dans:
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.


Source

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;
}