I am learning WordPress theme development, and I have started to use the following line in my functions.php file.
define( 'MEXICO_THEME_DIR', get_template_directory() );
define( 'MEXICO_THEME_URI', get_template_directory_uri() );
Am I able to use this in the example below in my enqueue-scripts.php file?
wp_enqueue_script( 'popper.js', MEXICO_THEME_URI . '/popper.js' );
Or do I have to create a new "define" name for each PHP page. Is there a method of making this global.