Skip to:
Content

BuddyPress.org

Changeset 10730


Ignore:
Timestamp:
05/04/2016 05:17:46 PM (9 years ago)
Author:
r-a-y
Message:

Blogs: Introduce new parameter - $no_activity to 'bp_blogs_new_blog' action.

See #6937.

File:
1 edited

Legend:

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

    r10712 r10730  
    296296     *
    297297     * @since 1.0.0
     298     * @since 2.6.0 Added $no_activity as a parameter.
    298299     *
    299300     * @param BP_Blogs_Blog $recorded_blog Current blog being recorded. Passed by reference.
    300301     * @param bool          $is_private    Whether or not the current blog being recorded is private.
    301302     * @param bool          $is_recorded   Whether or not the current blog was recorded.
    302      */
    303     do_action_ref_array( 'bp_blogs_new_blog', array( &$recorded_blog, $is_private, $is_recorded ) );
     303     * @param bool          $no_activity   Whether to skip recording an activity item for this blog creation.
     304     */
     305    do_action_ref_array( 'bp_blogs_new_blog', array( &$recorded_blog, $is_private, $is_recorded, $no_activity ) );
    304306}
    305307add_action( 'wpmu_new_blog', 'bp_blogs_record_blog', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.