Skip to:
Content

BuddyPress.org

Changeset 2656 for trunk/bp-xprofile.php


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

Moving BuddyPress registration functions to their own actions. Props jjj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r2645 r2656  
    125125    do_action( 'xprofile_setup_globals' );
    126126}
    127 add_action( 'plugins_loaded', 'xprofile_setup_globals', 5 );
     127add_action( 'bp_setup_globals', 'xprofile_setup_globals' );
    128128add_action( 'admin_menu', 'xprofile_setup_globals', 2 );
    129129
     
    195195    do_action( 'xprofile_setup_nav' );
    196196}
    197 add_action( 'plugins_loaded', 'xprofile_setup_nav' );
     197add_action( 'bp_setup_nav', 'xprofile_setup_nav' );
    198198add_action( 'admin_menu', 'xprofile_setup_nav' );
    199199
     
    465465    do_action( 'xprofile_register_activity_actions' );
    466466}
    467 add_action( 'plugins_loaded', 'xprofile_register_activity_actions' );
     467add_action( 'bp_register_activity_actions', 'xprofile_register_activity_actions' );
    468468
    469469/**
     
    952952add_action( 'delete_user', 'xprofile_remove_data', 1 );
    953953
     954
     955/********************************************************************************
     956 * Caching
     957 *
     958 * Caching functions handle the clearing of cached objects and pages on specific
     959 * actions throughout BuddyPress.
     960 */
     961
    954962function xprofile_clear_profile_groups_object_cache( $group_obj ) {
    955963    wp_cache_delete( 'xprofile_groups', 'bp' );
Note: See TracChangeset for help on using the changeset viewer.