script_loader_tag

Advertisement

Summery Summery

Filters the HTML script tag of an enqueued script.

Syntax Syntax

apply_filters( 'script_loader_tag', string $tag, string $handle, string $src )

Parameters Parameters

$tag

(string) The <script> tag for the enqueued script.

$handle

(string) The script's registered handle.

$src

(string) The script's source URL.

Source Source

File: wp-includes/class.wp-scripts.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?