Ticket #12199 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Add actions before and after signup form on wp-signup.php

Reported by: maxaud Owned by:
Priority: normal Milestone: 3.0
Component: Themes Version:
Severity: normal Keywords: multisite, do_action, themes
Cc:

Description

Make it so theme developers can easily edit the layout of the wp-signup.php page by adding actions after get_header() and before get_footer().

This will prevent users from editing core files. This will have no effect on non-multisite setups.

example:

do_action('before_signup'); do_action('after_signup');

Change History

Can't you use the get_header and get_footer hooks?

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

Both header.php and footer.php from the active theme are called by wp-signup.php. Add the hooks to the last line of your theme header.php and the first line of your footer.php.

comment:3   dd322 years ago

  • Status changed from closed to reopened
  • Resolution invalid deleted

Can't you use the get_header and get_footer hooks?

They'd run before any HTML is output'd i believe.

Personally, I'm +1 for a hook to allow plugins to add extra content to the pages.

There are currently 2 content-related filters: 'signup_extra_fields', and 'signup_blogform'

Do you have any specific requirements? I'm thinking at the start and end of <div class="mu_register"> myself.

(In [13629]) add actions before and after signup form, see #12199

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.