Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_style_add_data ›

Da3.6.0
Deprecaton/a
wp_style_add_data ( $handle, $key, $value )
Parametri: (3)
  • (string) $handle Name of the stylesheet.
    Richiesto:
  • (string) $key Name of data point for which we're storing a value. Accepts 'conditional', 'rtl' and 'suffix', 'alt' and 'title'.
    Richiesto:
  • (mixed) $value String containing the CSS data to be added.
    Richiesto:
Vedi:
  • WP_Dependency::add_data()
Ritorna:
  • (bool) True on success, false on failure.
Definito a:
Codex:

Add metadata to a CSS stylesheet.

Works only if the stylesheet has already been added.

Possible values for $key and $value: 'conditional' string Comments for IE 6, lte IE 7 etc. 'rtl' bool|string To declare an RTL stylesheet. 'suffix' string Optional suffix, used in combination with RTL. 'alt' bool For rel="alternate stylesheet". 'title' string For preferred/alternate stylesheets.



Sorgenti

function wp_style_add_data( $handle, $key, $value ) {
	return wp_styles()->add_data( $handle, $key, $value );
}