Changeset 10039 for trunk/src/bp-core/bp-core-actions.php
- Timestamp:
- 08/09/2015 05:07:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-actions.php
r10012 r10039 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Filters & Actions. … … 10 9 * They are consolidated here to make searching for them easier, and to help 11 10 * developers understand at a glance the order in which things occur. 12 *13 11 */ 14 12 15 // Exit if accessed directly 13 // Exit if accessed directly. 16 14 defined( 'ABSPATH' ) || exit; 17 15 … … 34 32 add_action( 'plugins_loaded', 'bp_loaded', 10 ); 35 33 add_action( 'init', 'bp_init', 10 ); 36 add_action( 'parse_query', 'bp_parse_query', 2 ); // Early for overrides 34 add_action( 'parse_query', 'bp_parse_query', 2 ); // Early for overrides. 37 35 add_action( 'wp', 'bp_ready', 10 ); 38 36 add_action( 'set_current_user', 'bp_setup_current_user', 10 ); 39 37 add_action( 'setup_theme', 'bp_setup_theme', 10 ); 40 add_action( 'after_setup_theme', 'bp_after_setup_theme', 100 ); // After WP themes 38 add_action( 'after_setup_theme', 'bp_after_setup_theme', 100 ); // After WP themes. 41 39 add_action( 'wp_enqueue_scripts', 'bp_enqueue_scripts', 10 ); 42 add_action( 'admin_bar_menu', 'bp_setup_admin_bar', 20 ); // After WP core 40 add_action( 'admin_bar_menu', 'bp_setup_admin_bar', 20 ); // After WP core. 43 41 add_action( 'template_redirect', 'bp_template_redirect', 10 ); 44 42 add_action( 'widgets_init', 'bp_widgets_init', 10 ); … … 100 98 add_action( 'bp_after_setup_theme', 'bp_load_theme_functions', 1 ); 101 99 102 // Load the admin 100 // Load the admin. 103 101 if ( is_admin() ) { 104 102 add_action( 'bp_loaded', 'bp_admin' ); 105 103 } 106 104 107 // Activation redirect 105 // Activation redirect. 108 106 add_action( 'bp_activation', 'bp_add_activation_redirect' );
Note: See TracChangeset
for help on using the changeset viewer.