Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/23/2024 01:25:28 AM (18 months ago)
Author:
espellcaste
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-template.php

    r13844 r13970  
    13541354
    13551355    /**
    1356      * Fires after the default successful blog registration message markup.
     1356     * Fires after a successful blog registration.
    13571357     *
    13581358     * @since 1.0.0
    13591359     */
     1360    /** This action is documented in wp-signup.php */
    13601361    do_action( 'signup_finished' );
     1362
     1363    /**
     1364     * Fires after a successful blog registration.
     1365     *
     1366     * @since 15.0.0
     1367     *
     1368     * @param int|null $blog_id ID of the newly created blog.
     1369     */
     1370    do_action( 'bp_created_blog', $blog_id );
    13611371}
    13621372
Note: See TracChangeset for help on using the changeset viewer.