Last active
January 26, 2019 07:34
-
-
Save FreshLondon/3fc042ae077d35dd838a82a39e1bac3f to your computer and use it in GitHub Desktop.
WordPress enqueue scripts and styles
This file contains 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
<?php | |
// Enqueue scripts | |
wp_enqueue_script( string $handle, string $src = '', array $deps = array(), string|bool|null $ver = false, bool $in_footer = false ); | |
// Enqueue styles | |
wp_enqueue_style( string $handle, string $src = '', array $deps = array(), string|bool|null $ver = false, string $media = 'all' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment