#5081 closed enhancement (fixed)
Add an action inside div#blog-details on register page
Reported by: | needle | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 1.9 | Priority: | normal |
Severity: | normal | Version: | 1.2 |
Component: | Templates | Keywords: | has-patch commit |
Cc: |
Description
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:
buddypress/bp-templates/bp-legacy/buddypress/members/register.php
buddypress/bp-themes/bp-default/registration/register.php
I've found myself needing similar hooks in the past. Moving to 1.9.