Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_style_is ›

Desde2.8.0
Obsoleton/a
wp_style_is ( $handle, $list = 'enqueued' )
Parâmetros: (2)
  • (string) $handle Name of the stylesheet.
    Required: Yes
  • (string) $list Optional. Status of the stylesheet to check. Default 'enqueued'. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
    Required: No
    Padrão: 'enqueued'
Retorna:
  • (bool) Whether style is queued.
Definido em:
Codex:

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



Fonte

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

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