bp_disable_group_cover_image_uploads( bool $default = false )

Are group cover images disabled?


Description Description


Parameters Parameters

$default

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

Default value: false


Top ↑

Return Return

(bool) True if group cover image uploads are disabled, otherwise false.


Top ↑

Source Source

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

function bp_disable_group_cover_image_uploads( $default = false ) {

	/**
	 * Filters whether or not members are able to upload group cover images.
	 *
	 * @since 2.4.0
	 *
	 * @param bool $value Whether or not members are able to upload thier groups cover images.
	 */
	return (bool) apply_filters( 'bp_disable_group_cover_image_uploads', (bool) bp_get_option( 'bp-disable-group-cover-image-uploads', $default ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.