Skip to:
Content

BuddyPress.org

Changeset 2656 for trunk/bp-friends.php


Ignore:
Timestamp:
02/10/2010 09:13:14 PM (15 years ago)
Author:
apeatling
Message:

Moving BuddyPress registration functions to their own actions. Props jjj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r2618 r2656  
    4848    do_action( 'friends_setup_globals' );
    4949}
    50 add_action( 'plugins_loaded', 'friends_setup_globals', 5 );
     50add_action( 'bp_setup_globals', 'friends_setup_globals' );
    5151add_action( 'admin_menu', 'friends_setup_globals', 2 );
    5252
     
    303303    do_action( 'friends_register_activity_actions' );
    304304}
    305 add_action( 'plugins_loaded', 'friends_register_activity_actions' );
     305add_action( 'bp_register_activity_actions', 'friends_register_activity_actions' );
    306306
    307307function friends_format_notifications( $action, $item_id, $secondary_item_id, $total_items ) {
     
    626626add_action( 'make_spam_user', 'friends_remove_data', 1 );
    627627
     628
     629/********************************************************************************
     630 * Caching
     631 *
     632 * Caching functions handle the clearing of cached objects and pages on specific
     633 * actions throughout BuddyPress.
     634 */
     635
    628636function friends_clear_friend_object_cache( $friendship_id ) {
    629637    if ( !$friendship = new BP_Friends_Friendship( $friendship_id ) )
Note: See TracChangeset for help on using the changeset viewer.