bp_is_current_component

  • apply_filters( 'bp_is_current_component', $is_current_component, $component )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 802
      		$page          = $wp_query->get_queried_object();
      		$custom_fields = get_post_custom_values( '_wp_page_template', $page->ID );
      		$page_template = $custom_fields[0];
      
      		// Component name is in the page template name
      		if ( !empty( $page_template ) && strstr( strtolower( $page_template ), strtolower( $component ) ) )
      			$is_current_component = true;
      	}
      
       	return apply_filters( 'bp_is_current_component', $is_current_component, $component );
      }
      
      /**
       * Check to see whether the current page matches a given action.
       *
       * Along with bp_is_current_component() and bp_is_action_variable(), this function is mostly used
       * to help determine when to use a given screen function.
       *
       * In BP parlance, the current_action is the URL chunk that comes directly after the
       * current item slug. E.g., in
      

Comments are closed.