apply_filters( 'bp_media_extractor_mentions', array $data, string $richtext, string $plaintext, array $extra_args )

Filters @mentions extracted from text.

Description

Parameters

$data

Extracted @mentions. See BP_Media_Extractor::extract_mentions() for format.

$richtext

Content to parse.

$plaintext

Copy of $richtext without any markup.

$extra_args

Bespoke data for a particular extractor (optional).

Source

File: bp-core/classes/class-bp-media-extractor.php

Changelog

Changelog
Version Description
BuddyPress 2.3.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.