Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 2 years ago

#7946 closed enhancement (fixed)

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

Reported by: boonebgorges Owned by: espellcaste
Priority: normal Milestone: 15.0.0
Component: Blogs Version:
Severity: normal 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
2 years ago

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

#2 @imath
2 years ago

  • Milestone Up Next → 15.0.0

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


2 years ago
#3

  • Keywords has-patch added; needs-patch removed

#4 @espellcaste
2 years ago

  • Keywords needs-patch added; has-patch removed

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

#5 @boonebgorges
2 years ago

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

#6 @espellcaste
2 years ago

@boonebgorges Good catch. Added! :)

#7 @boonebgorges
2 years ago

Looks good, thanks!

#8 @espellcaste
2 years ago

  • Resolution → fixed
  • Status assigned → 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.