Created
June 18, 2021 22:25
-
-
Save szepeviktor/064f79f8788b0cae59df6e4eb5df5c93 to your computer and use it in GitHub Desktop.
Informative constants for WordPress wp_enqueue_script() and wp_enqueue_style()
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 | |
namespace WordPress\Enqueue; | |
// wp_enqueue_script( $handle, $src = '', $deps = array(), $ver = false, $in_footer = false ) | |
const DEPS_EMPTY = []; | |
const VER_CORE = false; | |
const VER_EMPTY = null; | |
const IN_HEADER = false; | |
const IN_FOOTER = true; | |
// wp_enqueue_style( $handle, $src = '', $deps = array(), $ver = false, $media = 'all' ) | |
const MEDIA_ALL = 'all'; | |
const MEDIA_PRINT = 'print'; | |
const MEDIA_SCREEN = 'screen'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage