Filter hook 'style_loader_tag'

in WP Core File wp-includes/class-wp-styles.php at line 251

Description

Filters the HTML link tag of an enqueued style.

Occurrences

Filename Line Number
wp-includes/class-wp-styles.php 251
wp-includes/class-wp-styles.php 272

Parameters

Type Name Description
string $tag The link tag for the enqueued style.
string $handle The style's registered handle.
string $href The stylesheet's source URL.
string $media The stylesheet's media attribute.

PHP Doc

/**
		 * Filters the HTML link tag of an enqueued style.
		 *
		 * @since 2.6.0
		 * @since 4.3.0 Introduced the `$href` parameter.
		 * @since 4.5.0 Introduced the `$media` parameter.
		 *
		 * @param string $tag    The link tag for the enqueued style.
		 * @param string $handle The style's registered handle.
		 * @param string $href   The stylesheet's source URL.
		 * @param string $media  The stylesheet's media attribute.
		 */