bp_optional_components

  • apply_filters( 'bp_optional_components', array( 'activity', 'blogs', 'forums', 'friends', 'groups', 'messages', 'settings', 'xprofile' ) )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-loader.php :: Trac Source Line: 60
      		 *
      		 * The 'bp_core_loaded' action lets you execute code ahead of the
      		 * other components.
      		 */
      		do_action( 'bp_core_loaded' );
      
      		/** Components ********************************************************/
      
      		// Set the included and optional components.
      		$bp->optional_components = apply_filters( 'bp_optional_components', array( 'activity', 'blogs', 'forums', 'friends', 'groups', 'messages', 'settings', 'xprofile' ) );
      
      		// Set the required components
      		$bp->required_components = apply_filters( 'bp_required_components', array( 'members' ) );
      
      		// Get a list of activated components
      		if ( $active_components = bp_get_option( 'bp-active-components' ) ) {
      			$bp->active_components      = apply_filters( 'bp_active_components', $active_components );
      			$bp->deactivated_components = apply_filters( 'bp_deactivated_components', array_values( array_diff( array_values( array_merge( $bp->optional_components, $bp->required_components ) ), array_keys( $bp->active_components ) ) ) );
      
      		// Pre 1.5 Backwards compatibility
      

Comments are closed.