BP_Core_oEmbed_Extension::content_buffer_start( string $slug, string $name )

Start object buffer.

Description

We’re going to override WP’s get_template_part( ’embed, ‘content’ ) call and inject our own template for BuddyPress use.

Parameters

$slug

(string) (Required) Template slug.

$name

(string) (Required) Template name.

Source

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

	public function content_buffer_start( $slug, $name ) {
		if ( 'embed' !== $slug || 'content' !== $name ) {
			return;
		}

		// Start the buffer to wipe out get_template_part( 'embed, 'content' ).
		ob_start();
	}

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.