WP_Scripts::print_extra_script

SummerySummery

Prints extra scripts of a registered script.

Syntax

WP_Scripts::print_extra_script( string $handle, bool $echo = true )

ParametersParameters

$handle

(string) (Required) The script's registered handle.

$echo

(bool) (Optional) Whether to echo the extra script instead of just returning it.

Default value: true

ReturnReturn

(bool|string|void) Void if no data exists, extra scripts if $echo is true, true otherwise.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.3.0 Introduced.
Scroll to Top