Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/23/2016 02:48:33 AM (5 years ago)
Author:
johnjamesjacoby
Message:

Extend: Consolidate some BuddyPress hooks to the top of each file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/functions.php

    r5951 r6180  
    66 * @package bbPress
    77 * @subpackage BuddyPress
    8  * @todo maybe move to BuddyPress Forums once bbPress 1.1 can be removed
    98 */
    109
    1110// Exit if accessed directly
    1211defined( 'ABSPATH' ) || exit;
     12
     13// Hooks
     14add_action( 'bp_modify_page_title', 'bbp_filter_modify_page_title', 10, 3 );
     15add_filter( 'bbp_get_user_id', 'bbp_filter_user_id', 10, 3 );
     16add_filter( 'bbp_is_single_user', 'bbp_filter_is_single_user', 10, 1 );
     17add_filter( 'bbp_is_user_home', 'bbp_filter_is_user_home', 10, 1 );
    1318
    1419/** BuddyPress Helpers ********************************************************/
     
    7479    return $bbp_user_id;
    7580}
    76 add_filter( 'bbp_get_user_id', 'bbp_filter_user_id', 10, 3 );
    7781
    7882/**
     
    9195    return bp_is_user();
    9296}
    93 add_filter( 'bbp_is_single_user', 'bbp_filter_is_single_user', 10, 1 );
    9497
    9598/**
     
    108111    return bp_is_my_profile();
    109112}
    110 add_filter( 'bbp_is_user_home', 'bbp_filter_is_user_home', 10, 1 );
    111113
    112114/**
     
    144146    return $new_title;
    145147}
    146 add_action( 'bp_modify_page_title', 'bbp_filter_modify_page_title', 10, 3 );
    147148
    148149/** BuddyPress Screens ********************************************************/
Note: See TracChangeset for help on using the changeset viewer.