WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 6 months ago

#20592 new enhancement

Add hooks to New Site form in Dashboard

Reported by: MadtownLems Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: needs-patch
Focuses: multisite Cc:

Description

WordPress provides hooks for altering the wp-signup.php form that users use to create new sites on a MultiSite network. Using these, we developed a plugin that adds fields there for people to indicate some other information about their site. (specifically, to choose a topic)

However, there are no such hooks available on the New Site form available to network admins via the dashboard for some reason. This means that I am not able to append the extra form fields here that I can on the wp-signup.php page.

There should be similar (or identical) hooks used here so the New Site form can be modified in a similar way and be consistent with the wp-signup.php form.

Change History (10)

comment:1 @scribu3 years ago

  • Cc scribu added

comment:2 @DrewAPicture3 years ago

  • Cc xoodrew@… added

comment:3 @bananastalktome3 years ago

  • Cc bananastalktome@… added

comment:4 @Ipstenu3 years ago

  • Cc ipstenu@… added

comment:5 @martythornley3 years ago

  • Cc marty@… added

comment:6 @martythornley3 years ago

One of the tough parts here is that the html is completely different, so you would need to add different things in each place. It would be great to somehow get them working in a similar way.

comment:7 @jeremyfelt19 months ago

  • Milestone changed from Awaiting Review to Future Release

Agreed that hooks should be available in the new site form. I'd lean toward rethinking the experience of the new site form in general before we decide where to add the hooks. A patch as an example of where a hook could be useful may start things off as well.

comment:8 @jeremyfelt19 months ago

  • Component changed from Multisite to Networks and Sites
  • Focuses multisite added

comment:9 @helen18 months ago

If/when this becomes a thing, we should revisit adding required field indicators to the form: #15765.

comment:10 @jeremyfelt6 months ago

  • Keywords needs-patch added

Related #14215 and #31240, which this ticket could eventually compliment as part of a new Add Site interface.

Note: See TracTickets for help on using tickets.