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



get_registered_theme_feature › WordPress Function

Od5.5.0
Przestarzałyn/a
› get_registered_theme_feature ( $feature )
Parametry:
  • (string) $feature The feature name. See add_theme_support() for the list of possible values.
    Wymagane: Tak
Powrót:
  • (array|null) The registration args, or null if the feature was not registered.
Zdefiniowane na:
Codex:

Gets the registration config for a theme feature.



Źródło

function get_registered_theme_feature( $feature ) {
	global $_wp_registered_theme_features;

	if ( ! is_array( $_wp_registered_theme_features ) ) {
		return null;
	}

	return $_wp_registered_theme_features[ $feature ] ?? null;
}