bp_group_layout_default_format( string $default = 'grid' )

Default layout option for the groups listing

Description

Parameters

$default

(Optional) Fallback value if not found in the database. Default: grid.

Default value: 'grid'

Return

(string) Group layout format.

Source

File: bp-core/bp-core-options.php

function bp_group_layout_default_format( $default = 'grid' ) {

	/**
	 * Filters group layout format.
	 *
	 * @since BuddyBoss 1.2.0
	 *
	 * @param bool $value Group layout format.
	 */
	return apply_filters( 'bp_group_layout_default_format', bp_get_option( 'bp-group-layout-default-format', $default ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.2.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.