BP_Document_Folder::total_group_folder_count( int $group_id )

Count total folder for the given group

Description

Parameters

$group_id

(int) (Required)

Return

(array|bool|int)

Source

File: bp-document/classes/class-bp-document-folder.php

	public static function total_group_folder_count( $group_id = 0 ) {
		global $bp, $wpdb;

		$total_count = (int) $wpdb->get_var( "SELECT COUNT(*) FROM {$bp->document->table_name_folder} WHERE group_id = {$group_id}" ); // db call ok; no-cache ok;

		return $total_count;
	}

Changelog

Changelog
Version Description
BuddyBoss 1.4.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.