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



wp_style_is › WordPress Function

Od2.8.0
Przestarzałyn/a
wp_style_is ( $handle, $status = 'enqueued' )
Parametry: (2)
  • (string) $handle Name of the stylesheet.
    Wymagane: Tak
  • (string) $status Optional. Status of the stylesheet to check. Default 'enqueued'. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
    Wymagane: Nie
    Domyślny: 'enqueued'
Powrót:
  • (bool) Whether style is queued.
Zdefiniowane na:
Codex:

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



Źródło

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

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