Should BuddyPress load the mentions scripts and related assets, including results to prime the mentions suggestions?

Return Return

(bool) True if mentions scripts should be loaded.

Source Source

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

function bp_activity_maybe_load_mentions_scripts() {
	$mentions_enabled = bp_activity_do_mentions() && bp_is_user_active();
	$load_mentions    = $mentions_enabled && ( bp_is_activity_component() || is_admin() );

	 * Filters whether or not BuddyPress should load mentions scripts and assets.
	 * @since 2.1.0
	 * @param bool $load_mentions    True to load mentions assets, false otherwise.
	 * @param bool $mentions_enabled True if mentions are enabled.
	return (bool) apply_filters( 'bp_activity_maybe_load_mentions_scripts', $load_mentions, $mentions_enabled );

Top ↑

Changelog Changelog

Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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