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

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

$richtext

(string) Content to parse.

$what_to_extract

(int) Media type to extract.

$extra_args

(array) Bespoke data for a particular extractor.

$plaintext

(string) 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.