Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#37167 closed enhancement (wontfix)

Create filter for WP_USE_THEMES constant

Reported by: mrez0's profile mrez0 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6
Component: Themes Keywords:
Focuses: template Cc:


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)

#1 @michalzuber
6 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

No need, because you can

add_action( 'template_redirect', '__return_true' );

and skip template loading if I'm not misunderstanding line

#2 @SergeyBiryukov
6 years ago

  • Component changed from Plugins to Themes
  • Focuses template added
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.