Created
March 3, 2020 03:59
-
-
Save aliaramli/79eedf958a210568a8ca18e5949ac613 to your computer and use it in GitHub Desktop.
wp_enqueue_script parameters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters #Parameters | |
$handle | |
(string) (Required) Name of the script. Should be unique. | |
$src | |
(string) (Optional) Full URL of the script, or path of the script relative to the WordPress root directory. | |
Default value: '' | |
$deps | |
(array) (Optional) An array of registered script handles this script depends on. | |
Default value: array() | |
$ver | |
(string|bool|null) (Optional) String specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If version is set to false, a version number is automatically added equal to current installed WordPress version. If set to null, no version is added. | |
Default value: false | |
$in_footer | |
(bool) (Optional) Whether to enqueue the script before </body> instead of in the <head>. Default 'false'. | |
Default value: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment