Created
March 5, 2014 13:42
-
-
Save alessandrotesoro/9367358 to your computer and use it in GitHub Desktop.
Use minified libraries if SCRIPT_DEBUG is turned off
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
// Use minified libraries if SCRIPT_DEBUG is turned off | |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; | |
wp_enqueue_script( 'my-script-handle', plugin_dir_url( __FILE__ ) . 'assets/my-file' . $suffix . '.js', array( 'jquery' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment