Hello you would have to edit the parent theme as there is no way to overwrite the include_once 'bookingtable/bookingtable.php';
.
So to keep edits to the parent theme minimal, the whole code can be rewritten using wordpress get_template_part()
as
if ( class_exists('rtbInit') ) {
get_template_part('bookingtable/bookingtable');
}
This way you can then copy the file to your child theme and make edits there.
Related Posts:
- Serving precompressed content with Brotli on Apache
- How can I avoid code duplication for a blog with lots of source code?
- How to rename wp-includes folder?
- What’s the correct way to include files in WordPress TwentyTen theme with it’s own jquery scripts and css?
- ABSPATH not working! Any idea why?
- Get current user data from external PHP page
- External system integration with wordpress
- Why does get_template_part() break variables?
- How to pass variables with get_template_part?
- Problems Including File
- How to include core files into plugin
- How to check if txt file exists inside template folder?
- What’s the best way to ‘include’ a file in WordPress?
- locate_template function – File not getting included
- Can not include file from plugin into theme
- Include tags from array, ignore the rest in get_the_tags
- PHP files included within functions.php don’t work from admin area
- Wp Enviroment problem with included file
- Having trouble linking to file using relative path
- How can I include an external file in a post or page?
- Including php file in directory above WordPress installation
- add_feed failed to open stream
- Load content From Include File within plugin
- including Zend Gdata library path error
- What about “inc” (include) files and Child Theming? Is it possible?
- Make changes in /includes/http.php update safe
- Class works in Admin, not found on Front End
- if statement parent page for child pages
- add_action outside a plugin
- Add page as static html into another page
- Dynamically determine URI to scripts and styles included with a class which could be added from plugin/theme/child theme/mu plugin
- Include another HTML file in a HTML file
- C++ #include guards
- C++ #include guards
- Inserting a PDF file in LaTeX
- How do I run a file on localhost?
- class not declared in scope – even though .h was included
- Already defined in .obj – no double inclusions
- How do you #include files in java?
- How do I include a JavaScript file in another JavaScript file?
- Random not declared in scope
- “Multiple definition”, “first defined here” errors
- Error “Unterminated conditional directive” in cross-referencing headers
- “Fatal error: Cannot redeclare function”
- What is the difference between a .cpp file and a .h file?
- Difference between require, include, require_once and include_once?
- How to include file in a bash shell script
- cmath vs math.h (And similar c-prefixed vs .h extension headers)
- How to add a default include path for GCC in Linux?
- Compiler error C4430: missing type specifier – int assumed [duplicate]
- Eclipse CDT: Symbol ‘cout’ could not be resolved
- how to get wp-content folder in wordpress?
- WordPress frameworks and parent themes [closed]
- get_template_directory_uri pointing to parent theme not child theme
- Passing variables through locate_template
- Is there any way to use get_template_part() with folders?
- How to override parent functions in child themes?
- Versioning @import of parent theme’s style.css
- How to *remove* a parent theme page template from a child theme?
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Override parent theme translation on child theme
- The proper way to include/require PHP files in WordPress
- How do I replace a function, declared inside a plugin’s class, in functions.php?
- Child theme – Overriding ‘require_once’ in functions.php
- Should we use get_template_part() in functions files instead of include_once?
- is_plugin_active() returning false on active plugin
- Unable to check if plugin is active
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Include WP_Query in my own PHP file?
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Why is the Child Theme Stylesheet Not Loading?
- Order by & include array by specific post ids
- Child Theme vs Duplicate Theme Renamed
- Include a external PHP file into a WordPress Custom Template
- Include PHP file in Content using [shortcode]
- Theme Customization API and child themes
- Difference between stylesheet_directory and template_directory
- Include files in functions.php
- What is the right way to include a wp-admin file in your theme?
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- Declaring an instance of class included in parent theme from child theme functions.php
- How to Add Customizer Setting in Child Theme
- Get Parent Theme Author Name
- Get parent theme version
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- Namespacing WordPress project according to FIG standards
- How to use parent theme’s enqueue methods
- load/require specific php files for specific pages/templates/post types
- override parent theme configuration in child functions.php
- How can I include JavaScript that use jQuery on admin side
- Do all files in child theme override the parent?
- Is it possible to override this function/class in a child theme?
- Why does including a file in theme’s functions.php not work?
- bloginfo(‘stylesheet_directory’) vs. get_stylesheet_directory_uri() and include(‘file.php’) vs. get_template_part()
- Sort users in get_users() in custom order
- Do I need to update the child theme too after updating the parent?
- ob_get_clean returns empty string, ob_get_flush outputs string
- passing argument to get_template_part() or a better way to code
- Override parent theme function that is not hooked or in the functions.php file