Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#12199 closed enhancement (fixed)

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

Reported by: maxaud's profile maxaud Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Themes Keywords: do_action, themes
Focuses: multisite 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 (5)

#1 @nacin
15 years ago

Can't you use the get_header and get_footer hooks?

#2 @wpmuguru
15 years ago

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

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.

#3 @dd32
15 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

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.

#4 @wpmuguru
15 years ago

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

#5 @wpmuguru
15 years ago

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