apply_filters( 'bp_media_extractor_extract', array $media, string $richtext, int $what_to_extract, array $extra_args, string $plaintext )

Filters media extracted from text.

Description

Parameters

$media

Extracted media. See BP_Media_Extractor::extract() for format.

$richtext

Content to parse.

$what_to_extract

Media type to extract.

$extra_args

Bespoke data for a particular extractor.

$plaintext

Copy of $richtext without any markup.

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.