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 ) ) ) )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-loader.php :: Trac Source Line: 68
      		// 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
      		} elseif ( $deactivated_components = bp_get_option( 'bp-deactivated-components' ) ) {
      			// Trim off namespace and filename
      			foreach ( (array) $deactivated_components as $component => $value )
      				$trimmed[] = str_replace( '.php', '', str_replace( 'bp-', '', $component ) );
      
      			// Set globals
      			$bp->deactivated_components = apply_filters( 'bp_deactivated_components', $trimmed );
      
  • apply_filters( 'bp_deactivated_components', $trimmed )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-loader.php :: Trac Source Line: 77
      			$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
      		} elseif ( $deactivated_components = bp_get_option( 'bp-deactivated-components' ) ) {
      			// Trim off namespace and filename
      			foreach ( (array) $deactivated_components as $component => $value )
      				$trimmed[] = str_replace( '.php', '', str_replace( 'bp-', '', $component ) );
      
      			// Set globals
      			$bp->deactivated_components = apply_filters( 'bp_deactivated_components', $trimmed );
      
      			// Setup the active components
      			$active_components     = array_flip( array_diff( array_values( array_merge( $bp->optional_components, $bp->required_components ) ), array_values( $bp->deactivated_components ) ) );
      
      			// Loop through active components and set the values
      			$bp->active_components = array_map( '__return_true', $active_components );
      
      			// Set the active component global
      			$bp->active_components = apply_filters( 'bp_active_components', $bp->active_components );
      

Comments are closed.