Hotaru Docs

 [həʊdɒks]

Function Reference/includeJs

Description

Provides plugins and themes with the ability to include a .js file into the minimized .js file, generated by Hotaru.

Usage

<?php $h->includeJs( $folder, $filename ) ?>

Parameters

$folder | string (default = '') If located in a plugin, the plugin, else, the filename $filename | string (default = '') If located in a plugin, the file

Note: Omit the .js extension in the filename!

Return Values

boolean true.

Examples

<?php
     $h->includeJs('myspecialjsfile'); //Includes javascript/myspecialjsfile.js
     $h->includeJs('my_plugin','myspecialjsfile'); //Includes my_plugin/javascript/myspecialjsfile.js
?>

Source File

includeJs() is located in Hotaru.php.

Related