Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_style_is ›

Da2.8.0
Deprecaton/a
wp_style_is ( $handle, $list = 'enqueued' )
Parametri: (2)
  • (string) $handle Name of the stylesheet.
    Richiesto:
  • (string) $list Optional. Status of the stylesheet to check. Default 'enqueued'. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
    Richiesto: No
    Default: 'enqueued'
Ritorna:
  • (bool) Whether style is queued.
Definito a:
Codex:

Check whether a CSS stylesheet has been added to the queue.



Sorgenti

function wp_style_is( $handle, $list = 'enqueued' ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );

	return (bool) wp_styles()->query( $handle, $list );
}