Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 2 months ago

#7946 closed enhancement (fixed)

BP-specific hook at the end of the site creation process

Reported by: boonebgorges's profile boonebgorges Owned by: espellcaste's profile espellcaste
Milestone: 15.0.0 Priority: normal
Severity: normal Version:
Component: Blogs Keywords: needs-patch good-first-bug
Cc:

Description

When creating a site at /sites/create/, a number of core WP actions are fired (wpmu_new_blog) and at least one core hook is duplicated in BP (signup_finished). It would be nice to have a hook at the end of this process that only fires in the BP environment - something like bp_created_blog.

Change History (8)

#1 @espellcaste
3 months ago

  • Milestone changed from Awaiting Contributions to Up Next
  • Owner set to espellcaste
  • Status changed from new to assigned

#2 @imath
3 months ago

  • Milestone changed from Up Next to 15.0.0

This ticket was mentioned in PR #336 on buddypress/buddypress by renatonascalves.


2 months ago
#3

  • Keywords has-patch added; needs-patch removed

#4 @espellcaste
2 months ago

  • Keywords needs-patch added; has-patch removed

Added a patch. @boonebgorges Let me know if that's enough.

#5 @boonebgorges
2 months ago

@espellcaste - It would be more useful if we could get the ID of the new site passed to the action.

#6 @espellcaste
2 months ago

@boonebgorges Good catch. Added! :)

#7 @boonebgorges
2 months ago

Looks good, thanks!

#8 @espellcaste
2 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 13970:

Add a BP-specific hook at the end of the site creation process.

When creating a site at /sites/create/, fire a BP-specific hook, bp_created_blog, at the end of the site creation.

Fixes #7946
Closes https://github.com/buddypress/buddypress/pull/336

Note: See TracTickets for help on using tickets.