wp_enqueue_script( string $handle, string $src = '', array $deps = array(), string|bool|null $ver = false, bool $in_footer = false );
Registers the script if $src provided (does NOT overwrite), and enqueues it.
parameters
(string) (Required) Name of the script. Should be unique.
(string) (Optional) Full URL of the script, or path of the script relative to the WordPress root directory.
Default value: ''
(array) (Optional) An array of registered script handles this script depends on.
Default value: array()
(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
(bool) (Optional) Whether to enqueue the script before </body> instead of in the <head>. Default 'false'.
Default value: false
from : https://developer.wordpress.org/reference/functions/wp_enqueue_script/
'지속가능티끌 > 웹,워드프레스' 카테고리의 다른 글
워드프레스. 문서내 코드삽입 하이라이팅. Pastacode. 플러그인. (0) | 2017.03.02 |
---|---|
워드프레스. 자바스크립트 파일 로딩 플러그인. JavaScript AutoLoader (1) | 2017.03.02 |
워드프레스. JetPack Stats 버그. child theme 에 functions.php 있는 경우. (0) | 2017.03.01 |
워드프레스. 파비콘 표현. functions.php (0) | 2017.03.01 |
워드프레스. GitHub Gist 코드 문서삽입. (0) | 2017.03.01 |
댓글