tribe_asset_print_group( string|array $group, bool $echo = true )
Prints the script
(JS) and link
(CSS) HTML tags associated with one or more assets groups.
Contents
Parameters
- $group
-
(string|array) (Required) Which group(s) should be enqueued.
- $echo
-
(bool) (Optional) Whether to print the group(s) tag(s) to the page or not; default to
true
to print the HTMLscript
(JS) andlink
(CSS) tags to the page.Default value: true
Return
(string) The script
and link
HTML tags produced for the group(s).
Source
File: src/functions/template-tags/general.php
function tribe_asset_print_group( $group, $echo = true ) { /** @var \Tribe__Assets $assets */ $assets = tribe( 'assets' ); return $assets->print_group($group, $echo); }
Changelog
Version | Description |
---|---|
4.12.6 | Introduced. |