wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



option_update_filter › WordPress Function

Od2.7.0
Przestarzałyn/a
option_update_filter ( $options )
Parametry:
  • (array) $options
    Wymagane: Tak
Powrót:
  • (array)
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 5.5.0

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

See the {@see 'allowed_options'} filter.


Źródło

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