#37167 closed enhancement (wontfix)
Create filter for WP_USE_THEMES constant
Reported by: | mrez0 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | Themes | Keywords: | |
Focuses: | template | Cc: |
Description
Why not create filter for WP_USE_THEMES constant which is defined in index.php in order for plugins to disable loading template instead of editing index.php directly.
Change History (2)
Note: See
TracTickets for help on using
tickets.
No need, because you can
and skip template loading if I'm not misunderstanding line https://github.com/WordPress/WordPress/blob/master/wp-includes/template-loader.php#L12