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



wp_get_root_state_style › WordPress Function

Da7.1.0
Deprecaton/a
› wp_get_root_state_style ( $state_style, $nested_keys )
Parametri: (2)
  • (array) $state_style State style object.
    Richiesto: Sì
  • (array) $nested_keys Keys to remove from the root style object.
    Richiesto: Sì
Ritorna:
  • (array) Root-only style object.
Definito a:
Codex:

Returns a style object with nested state keys removed.



Sorgenti

function wp_get_root_state_style( $state_style, $nested_keys ) {
	if ( ! is_array( $state_style ) ) {
		return $state_style;
	}

	$root_style = $state_style;
	foreach ( $nested_keys as $key ) {
		unset( $root_style[ $key ] );
	}

	return $root_style;
}