bp_update_is_directory( bool $is_directory = false, string $component = '' )

Set the “is_directory” global.


Parameters Parameters

$is_directory

(bool) (Optional) Default: false.

Default value: false

$component

(string) (Optional) Component name. Default: the current component.

Default value: ''


Source Source

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

function bp_update_is_directory( $is_directory = false, $component = '' ) {

	if ( empty( $component ) ) {
		$component = bp_current_component();
	}

	/**
	 * Filters the "is_directory" global value.
	 *
	 * @since 1.5.0
	 *
	 * @param bool   $is_directory Whether or not we're "is_directory".
	 * @param string $component    Component name. Default: the current component.
	 */
	buddypress()->is_directory = apply_filters( 'bp_update_is_directory', $is_directory, $component );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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