WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#12199 closed enhancement (fixed)

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

Reported by: 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)

comment:1 nacin4 years ago

Can't you use the get_header and get_footer hooks?

comment:2 wpmuguru4 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.

comment:3 dd324 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.

comment:4 wpmuguru4 years ago

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

comment:5 wpmuguru4 years ago

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