If you are talking about the WordPress root, use:
include ABSPATH . "/extra-file.php";
ABSPATH
is always the WordPress root, you can see that in your wp-config.php
.
Related Posts:
- Can wordpress theme folder name be changed freely and nothing technically happens
- How to change the language for the front-end only?
- How do I add support to my theme for custom menus?
- How do I white label my self-hosted site created by wordpress?
- Switching themes without losing widgets?
- How to use media upload on theme option page?
- Multiple image logo for theme
- How do i structure my theme folder to avoid one huge list of files
- Loading template files from a subfolder in my theme?
- Hide Twenty Eleven Theme From Themes Page
- How to use scss in wordpress theme?
- How to get Ajax into a theme – without writing a plugin?
- Is it mandatory to have a link to the theme designer?
- How do I change Twenty Nineteen’s primary color without using the color slider in the theme customizer?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Updating custom theme that is built from scratch
- single.php change into a modal popup bootstrap wordpress
- Exclude stylesheet from admin
- How to tell a theme to use different .mo and .po files?
- Can I apply a WP theme to a specific custom page template?
- get_header(‘header2’) not working properly in child themes
- How do you remove Link backs on Theme settings page?
- Is it possible to use child theme of child them?
- Disable Sidebar in the Product Page in Storefront Theme [closed]
- Theme broken after upgrading to WordPress 4.5, missing stylesheet?
- Do not show excerpt in post content
- Do we have rights to edit the source of the templates which are in wordpress.org?
- What’s the order of loading wordpress elements?
- How to add pagination to my code?
- Creating new templates in child themes breaks layout
- How do I tell how popular a theme is?
- Force theme or disallow theme change
- How to put a Worpdpress theme in spanish (having the po file)?
- How to run WordPress from other location on the same domain
- Custom options below pages/posts editor?
- Fatal error with a theme
- WordPress theme options and insert default value for serialize data
- How to change only one javascript function in wordpress child theme?
- Woocommerce StoreFront Showing Incorrect Subtotal in Customer Total
- Depending on third party plugins for theme functionality
- What is the correct way to integrate wordpress with another php application?
- How can you showcase premium themes to clients without having to pre-purchase the theme?
- Functions containing parameter ‘yourtheme’
- The Cost of Installing Custom Themes
- Can I create a child theme from a premium theme without losing my posts and page etc that I already have?
- Cant remove white space on my wordpress [closed]
- wordpress theme install failing
- WordPress suddenly creating theme errors
- Re-skinning Site
- How to reset a custom theme
- Warning : Invalid argument supplied for foreach() in theme php on line 56 [closed]
- get_the_post_thumbnail() produces different HTML on same arguments
- Why submenu item’s background color is not changing by css?
- .PO file is found but I don’t see translations: how to debug the problem?
- Cannot figure out what element header color is in wordpress theme [closed]
- How to edit the font color of the H1 on a single page?
- An unexpected error occurred when add theme
- Searching for themes that post full article on home page by default
- Cannot see theme in my search
- Posts & page twice display
- What login/password do I need to install a wordpress theme?
- How to remove date, author and comment count from Chameleon search results page
- Index page is not working
- get_pages Not accepting my query
- Date based CSS/theme
- Custom fields in post later used in loop
- How to create a theme that can be updated by people using the theme on their site
- Functions.php error – when trying to change the theme
- Make a menu item unselectable
- Can I use non-wordpress themes in WordPress?
- Set custom directory in theme for page templates
- how do you add a gallery to the homepage without using a post or page?
- How to change WordPress theme outside of admin? Can’t access dashboard
- fixing page URL’s
- Don’t prepend WordPress base url to image paths
- Change name of WP content > Themes folder
- How to get dynamic template-function generated CSS into HEAD?
- Password Protected Page + Showing Different Page If Not Authenticated/Authorized
- Show part of front page on another page [closed]
- Determine Featured Image Size in header
- Premium theme – hardcoded url?
- Any Mobile Theme Switcher – Theme not complete (Stylesheet missing)
- Categorising themes by folders in backend
- My site looks different when activating new theme
- Child theme after CSS modification
- How to make a website like the ones in theme demos? [closed]
- How to create an Single-Portfolio page?
- Page structure using The Customizer Api
- theme 2016 – customize css – nothing happens
- Can’t upload the theme
- Divi theme including javascript
- “Parse error: syntax error, unexpected” and the WordPress Theme Editor no longer working!
- Installing themes from an external website [closed]
- Best Practice Jumbotron Image for WordPress ~ Responsive
- How to make a page extend full screen [closed]
- Should you directly edit Template Parts and Templates from themes?
- Remove ALL HTML from single page
- Remove Google Fonts from parent theme within a child theme [closed]
- register_nav_menus syntax error, unexpected identifier “register_nav_menus” in
- RTL in posts only [closed]