Since 4.7 get_theme_file_path()
is the right function to use:
require_once get_theme_file_path( 'gateway/config.php' );
Related Posts:
- is there a simple way to list every templates / php files used to generate a specific page?
- Understanding WordPress child theme custom JS loading
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- Warning: printf(): Too few arguments in helpers.php file
- Removing “Powered by” footer using child theme PHP [closed]
- Need advice on theme customizer and child themes
- Trying to change featured image from 180×180 to full width on home page
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- WordPress child theme, creating a custom php template page
- Add Text Area To Child Theme’s Home Page
- WordPress Themes and PHP unit
- Need help setting default setting value for radio button in theme customizer
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Dynamically change feature image in customiser
- Setting up the child theme so as to enable right-to-left WordPress?
- Design view breaking on Pages
- Adjust the results quantity for Search Results page pagination
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- WordPress loop specific thumbnail size
- Is it possible to use the featured image of a page as a css background without inlining?
- How do I translate this string – PHP syntax question
- Site Health : An active PHP session was detected
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- How to display recent posts on home page with custom HTML
- using add_action for a header hook that has an additional parameter
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- write custom woocommerce templates and forms
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- Set the checkbox as checked by default at options page
- How do I add custom bulk actions to multiple custom post types?
- populate form fields in a loop with ajax
- Error in custom php function doesn’t exist
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- How to disable controls in theme customizer?
- What does this mean in wordpress? Easy question
- Started getting warning message following host’s PHP upgrade
- Show About and Contact Us page when they’re clicked in the top menu.
- Is There A Way To Make Theme Files Accept Shortcodes?
- How to show an entire post content and not also the excerpt?
- WordPress import media error
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- Hide Heading if ACF Field is empty
- How do I get the content excerpt of the recent post?
- Save Custom CSS file in the upload folder dynamically?
- Divi change project category slug
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- Double Curly Brackets in Php
- WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin
- How to have different site identity logos on each page on Astra Theme [closed]
- Include style.css in the Child Theme with PHP
- Problems clearing cache
- Overide Variable in Child Theme
- Unable to access WordPress functions from functions.php
- child parent styles enqueue order
- using wp enqueue style to create a CSS file specifically for a page template
- How to style injected code in header section?
- Removed jQuery script from header.php , any problems?
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- pass html code to worpdress
- Commas in Tag Cloud
- Remove the Tag from wp_nav_menu
- security concerns if using html data-* attribute for l10n?
- Need help for some PHP code
- How do you get the current post taxonomy so I can get the current post taxonomy? into a variable to THEN loop through all post with that taxonomy.,
- How do you create a custom category widget that you can style?
- Why would the child theme load in the Customize preview, but not on the site itself?
- How to change basename url for wp-admin?
- how to replace h1 entry title with h2 in category pages only
- url not using query string no longer working
- Not able to remove caption shortcode from the content
- File from parent theme imported to child theme doesn’t work – any ideas?
- Weird fonts showing which are coming from database
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- PHP “warning include_once(): Failed to open stream” Simple HTML DOM in WordPress Child Theme
- How to have different headers.php files based on the display page
- Display post date also if the date it’s the same for each post
- Submit remote form to wordpress REST API and save data to custom post type
- AJAX numerical pagination problem in TwentyFifteen-child theme
- Add a custom link to each image in WordPress gallery
- register dependency css and js inside a plugin class
- How to edit button permalink inside function.php using a child theme?
- Proper use of Output Buffer for a whole php clas
- Collapsible menu on post sidebar only expands and does not collapse
- CSS loading as empty file in Custom Theme
- How to get php file based on URL in WordPress
- How can I customize a WordPress theme before it’s downloaded?
- I want different post-thumbnail size depending on media size
- Where to find the html for WordPress site? [closed]
- How to remove image on single product and get product to span page?
- Trying send mail from Theme page
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Adding code to the function file
- Shortcode working in page.php but not in category.php in wordpress
- Adding a Sub Menu Options Page WP Backend Menu. Whats wrong with my code?
- How can a ‘scripts’ directory be hooked into wp_head();?
- WP and Laravel integration (Updated) [closed]
- PHP warning: Undefined array key 2 in feed.php
- How to hide header and footer from page template