locate_template() is not pluggable, and there’s no filter. A filter was proposed a decade ago, but it hasn’t been implemented. The ticket for that is here, so you can read that discussion to get an idea of why it might not have happened yet.
The template hierarchy filters might be helpful. They will let you filter the template hierarchy for the top-level templates like page.php, date.php, or category.php etc. Similarly, the template_include filter will let you replace the entire template used to render any given page.
But really, WordPress is not designed to support 3 levels of inheritance for templates. The “proper” solution to your problem would be to copy the child theme to a new theme and make your changes to that.
Related Posts:
- Reusable functions and tools (Framework)
- How to override any plugin file in the child theme
- Where do I put the code snippets I found here or somewhere else on the web?
- Disable plugin / plugin action via theme
- Common functionality between my own plugins
- Need to create a Theme demo site that features multiple themes
- Why does including a file in theme’s functions.php not work?
- Function to activate WordPress theme inside a plugin
- Editor access to plugin settings
- Saving Plugin settings to the database
- Shortcode display outside the div
- Should I use RIPS tool to test my themes and plugins?
- Add Top-Level Menu that opens URL
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
- unzip a folder on specific location and delete the zip file
- Scope for PHP Variables Assigned in functions.php or a plugin
- plugin development: problem with functions
- How to get current post user id
- wordpress plugin is not activating from widget
- Edit Yoast SEO breadcrumbs output [closed]
- Display post lists in 2nd paragraph
- Using a post-signup hook to get user details
- creating html reusable blocks via shortcodes
- Is there any kind of theme on WordPress to sell my own movies?
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- Homemade plugin while using Themify Ultra
- Conditional attributes and logic per product category
- Difference and examples of esc_attr__() and esc_attr_e()
- Redirect to another page using contact form 7? [closed]
- List the authors that have written posts in a category
- Create custom pages with a plugin
- Proper way to use plugin functions in functions.php
- Shortcode Attributes to Return different $_POST
- Plugin onclick button activate other plugin
- I receive taxonomy id
- strange shortcode error: does shortcodes requires any dependency?
- How to access OOP plugin function inside themes or other plugin
- How to check homepage contain blog post?
- How do you create a re-useable HTML fragment in wordpress
- Next Previous Post in wordpress with previous / next link with title?
- Different registration form for different roles
- How can i list random author?
- More gentle way to hook WordPress custom url
- Per theme plugins?
- Removing the custom_image_header from wp_head
- Checkbox show / hide output result
- How to keep plugin (media-sync) running even the tab is closed?
- Where do I put the code snippets I found here or somewhere else on the web?
- Error using wordpress functions inside a plugin class
- Allow a particular user to access a particular plugin?
- How to copy the all WordPress media items to another custom plugin folder?
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- function post to trash problem
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- The function called on the wp head hook becomes null
- adding dynamic/multiple slug values in ‘option_none_value’
- working code, not working – Plugin Dev
- how override a define
- Link custom post type to page
- Securing langugae folder
- when i activate my WordPress plugin cannot see customizer options or preview
- How to prevent redoing get_posts queries and make results available to other scripts?
- Google trying to index child theme files
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- register_activation_hook doesn’t fire at all
- Cron job emails blank
- My ajax request don´t work and return 0
- how to add custom css at top above all css file for specific url
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- WordPress Add advertising ads befor and after content with periority [closed]
- plugin not hooking to my custom hook
- Populate select option with JSON file
- How to Call Function From Separate WordPress Install on Same Server?
- Can plugin automatically update if i hide the update notification?
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- What Are the Advantages of Using an mu-plugin
- how to create table during plugin installation in side a class
- Input gets deleted/overwritten after changing to different Admin Menu
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- How to Overwrite validate_plugin function
- How to add a handler for a button in plugin?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Custom Function for SEO by Yoast plugin
- Can’t get custom user meta to show in header
- How to list posts that appear in two categories
- Breadcrumb is not generating the correct post page url
- Pass strings to plugin function [closed]
- How to get current template file used by WordPress?
- Send email notification when meet the condition
- Create WordPress category dynamically
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Issue with customizer and widget page
- Gravity Forms and Gravity View Permissions
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How to make content as required in custom post type?
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- Any plugin installation and update overwrite current theme
- Mixed results with is_page() WordPress function, when using $this, or self