difference of each codes for wordpress
I'm studying wordpress development and i was bumped to this codes. i'm trying my best to look from google but i can't seem to find it. Just wondering if what these codes means.
what does the /admin stands for in the theme_css_uri?
define( 'name_THEME_URI', get_stylesheet_directory_uri()); define( 'name_THEME_TEMPLATE_URI', name_THEME_URI . '/templates' ); define( 'name_THEME_LANGUAGES_URI', name_THEME_URI . '/languages' ); define( 'name_THEME_ASSETS_URI', name_THEME_URI . '/assets' ); define( 'name_THEME_JS_URI', name_THEME_ASSETS_URI . '/js' ); define( 'name_THEME_CSS_URI', name_THEME_ASSETS_URI . '/css' ); define( 'name_THEME_IMAGES_URI', name_THEME_ASSETS_URI . '/images' ); define( 'name_THEME_ADMIN_JS_URI', name_THEME_JS_URI . '/admin' ); define( 'name_THEME_ADMIN_CSS_URI', name_THEME_CSS_URI . '/admin' );
2.what does the two dollar sign means and why does the code changed from get_stylesheet_directory_uri(); to $name_template_directory_uri
$name_template_directory_uri = get_stylesheet_directory_uri();
function name_register_js() {
global $name_template_directory_uri;
wp_register_script('nectar_priority', $name_template_directory_uri . '/js/priority.js', 'jquery', '',TRUE);
}
add_action('wp_enqueue_scripts', 'name_register_js');
Hope someone can help me. thank you