bp_get_current_group_id

  • apply_filters( 'bp_get_current_group_id', $current_group_id, $current_group )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-template.php :: Trac Source Line: 2774
      	 * @uses apply_filters() Filter bp_get_current_group_id to modify this output
      	 *
      	 * @return int $current_group_id The id of the current group, if there is one
      	 */
      	function bp_get_current_group_id() {
      		$current_group = groups_get_current_group();
      
      		$current_group_id = isset( $current_group->id ) ? (int)$current_group->id : 0;
      
      		return apply_filters( 'bp_get_current_group_id', $current_group_id, $current_group );
      	}
      
      /**
       * Echoes the output of bp_get_current_group_slug()
       *
       * @package BuddyPress
       * @since 1.5
       */
      function bp_current_group_slug() {
      	echo bp_get_current_group_slug();
      

Comments are closed.