Where in WordPress is TEMPLATEPATH initially set?
get_template_directory(): string. Retrieves template directory path for the active theme.
If you have WordPress bootstrap loaded you can use get_home_path() function to get path to the WordPress root directory.
You need to find the one with /wp-content/themes in the URL. You may be able to find the Theme's URL or Theme Author's URL here which will lead you to the theme used by the website. Many WordPress sites use child themes to customize their websites.
Theme URI: The URL of a public web page where users can find more information about the theme. Author (*): The name of the individual or organization who developed the theme.
TEMPLATEPATH has been deprecated.
Use the following to include files:
// Load entire ThemeSmith framework
include get_template_directory() . '/my-extra-functions.php';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With