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

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


Description Description

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


Top ↑

Parameters Parameters

$slug

(string) (Required) Template part slug requested.

$name

(string) (Required) Template part name requested.


Source 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' );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.