Home page of the web site:
$siteurl = site_url('/');
=> https://web20bp.com/kb/
URL of the current theme:
$template_url = get_bloginfo(‘template_url’);
=> CAGE Knowledge Base
Current CHILD theme directory:
$template_dir = get_template_directory();
=> /home1/webtwoze/public_html/kb/wp-content/themes/twentyeleven
Current CHILD theme URL:
$template_url = get_template_directory_uri();
=> https://web20bp.com/kb/wp-content/themes/twentyeleven
Physical path to the current directory:
$file = dirname(__FILE__);
=> /home1/webtwoze/public_html/kb/wp-content/plugins/rvg-all-tags
Plugins URL:
$url = plugins_url();
=> http://localhost/wp-content/plugin
Plugins directory:
$dir = plugin_dir_path(__FILE__);
=> C:\Rolf\wp-content\plugins\rvg-float-to-top-button/
Load a javascript file:
wp_enqueue_script('fttb-script',
plugin_dir_url( __FILE__ ).'/js/jquery.scrollUp.min.js',
array('jquery'), $this->fttb_version, true);
—