Skip to:

Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#5081 closed enhancement (fixed)

Add an action inside div#blog-details on register page

Reported by: needle's profile needle Owned by: r-a-y's profile r-a-y
Milestone: 1.9 Priority: normal
Severity: normal Version: 1.2
Component: Templates Keywords: has-patch commit


I would like to add fields to the existing blog-related ones when the registration page is displayed, but would prefer that they be located inside the div, so that they are revealed along with the basic options when the checkbox is ticked.

The function bp_blogs_signup_blog has do_action('signup_blogform', $errors); at the end of it which I can hook into and which does what I want - but this form is only displayed when a logged in user requests a new blog. The core WP file 'wp-signup.php' also has this hook at the appropriate point. I'd like the same thing, but on the BP register page.

To that end, can I propose an action be placed just before the closing tag of div#blog-details in the relevant files? Something like <?php do_action( 'bp_after_blog_details' ) ?> perhaps?

Files affected:

Attachments (1)

5081.01.patch (2.9 KB) - added by r-a-y 11 years ago.

Download all attachments as: .zip

Change History (6)

#1 @r-a-y
11 years ago

  • Milestone changed from Awaiting Review to 1.9
  • Version set to 1.2

I've found myself needing similar hooks in the past. Moving to 1.9.

11 years ago

#2 @r-a-y
11 years ago

  • Keywords has-patch added

Just need a dev to verify that the action names are good enough.

#3 @boonebgorges
11 years ago

  • Keywords commit added

Looks good to me!

#4 @r-a-y
11 years ago

  • Owner set to r-a-y
  • Resolution set to fixed
  • Status changed from new to closed

In 7475:

Add additional hooks in the registration template.

This will allow theme and plugin devs the opportunity to insert markup
inside the account, profile and blog details sections.

Previously, hooks were available before and after these sections, but
not inside the actual block.

Fixes #5081.

#5 @DJPaul
8 years ago

  • Component changed from Appearance - Template Parts to Templates
Note: See TracTickets for help on using tickets.