Last active
May 14, 2018 10:44
-
-
Save obiPlabon/94c5ba91733a19ebb66440505c960c45 to your computer and use it in GitHub Desktop.
Article in Bengali: https://obiplabon.im/891/wordpress-debugging-constants/
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
| <?php | |
| /** | |
| * Enqueue scripts | |
| */ | |
| function op_enqueue_scripts() { | |
| $suffix = '.min'; | |
| if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { | |
| $suffix = ''; | |
| } | |
| wp_enqueue_script( | |
| 'op-script', | |
| get_template_directory_uri() . '/assets/js/script' . $suffix . '.js', | |
| array( 'jquery' ), | |
| '0.0.7', // I always use this as init version becuase I like 007 ;) | |
| true | |
| ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'op_enqueue_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment