BP_Activity_oEmbed_Extension::on_activity_header( string $slug, string $name )

Do stuff when our oEmbed activity header template part is loading.

Description

Currently, removes wpautop() from the bp_activity_action() function.

Parameters

$slug

(Required) Template part slug requested.

$name

(Required) Template part name requested.

Source

File: bp-activity/classes/class-bp-activity-oembed-extension.php

	public function on_activity_header( $slug, $name ) {
		if ( false === $this->is_page() || 'activity' !== $name ) {
			return;
		}

		remove_filter( 'bp_get_activity_action', 'wpautop' );
	}

Changelog

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