apply_filters( 'bp_activity_create_summary_extractor_result', array $extracted_media, string $content, array $activity, array $media, string $use_media_type, string $image_source )

Filter the results of the media extractor when creating an Activity summary.

Description

Parameters

$extracted_media

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

$content

Content of the activity item.

$activity

The data passed to bp_activity_add() or the values from an Activity obj.

$media

All results from the media extraction. See BP_Media_Extractor::extract() for format.

$use_media_type

The kind of media item that was preferentially extracted.

$image_source

If $use_media_type was "images", the preferential source of the image. Otherwise empty.

Source

File: bp-activity/bp-activity-functions.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.