bp_profile_layout_default_format( string $default = 'grid' )

Default layout option for the members listing

Description

Parameters

$default

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

Default value: 'grid'

Return

(string) Profile layout format.

Source

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

function bp_profile_layout_default_format( $default = 'grid' ) {

	/**
	 * Filters profile layout format.
	 *
	 * @since BuddyBoss 1.2.0
	 *
	 * @param bool $value Profile layout format.
	 */
	return apply_filters( 'bp_profile_layout_default_format', bp_get_option( 'bp-profile-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.