Ticket #716 (closed enhancement: fixed)

Opened 5 years ago

Last modified 3 years ago

add actions before/after template load

Reported by: _ck_ Owned by:
Priority: normal Milestone: 1.0
Component: Back-end Version: 0.8.2.1
Severity: normal Keywords:
Cc:

Description

It would be really nice to have actions (pre/post) possible for each template load (before/after the include). This would allow plugin authors to insert content before or after each page as desired without end-users having to hack the templates.

For example there is no method to inject additional fields into the edit-form and post-form templates (without using javascript manipulations since the form has been closed).

Change History

Actually, the form is open when 'post_form' is called.

 http://trac.bbpress.org/browser/trunk/bb-includes/template-functions.php#L163

  • Milestone set to 0.8.4 & WP-Taxonomy

This could allow plugin devs to make a lot of mess in themes.

I'm not sure it's a good idea. I'd rather address the problems that we can identify as fixable, and add filters for them. I'm tempted to "wontfix" this ticket, and open new cases of filter/action requirements on a needs basis.

  • Milestone changed from 0.9 to 1.0-beta & XML-RPC

Moving to 1.0-beta to allow for further discussion. This won't make it into 0.9

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

(In [1646]) template loader actions. Fixes #716, #423

  • Milestone 1.0-beta deleted

Milestone 1.0-beta deleted

  • Milestone set to 1.0
Note: See TracTickets for help on using tickets.