Replies: 2 comments
-
|
Good idea :) I think that should be at get_template_file() method. Or is the return filter too much? Don't want 3rd parties to mess with it, really. We could be opening a hole in there in terms of security. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Check this out, please: f1c8ac6 I think that should work in your case. Let me know, please. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We've had an instance where we've included the HTMX-API-WP, and we've had to create a new child theme in order to add our templates to
/htmx-templates/. Whereas our project already had a plugin we're coding, and that plugin would be a sensible place to store our HTMX templates. It seems like it might be nice to be able to filter the path returned byHXWP_Render::get_theme_path(). Something like this:With the above, I believe I could then run the following inside my plugin so that I could store my templates inside
/myplugin/htmx-templates/:Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions