BP_Core_oEmbed_Extension::filter_rest_url( string $retval = '' )

Append our custom slug endpoint to oEmbed endpoint URL.


Description Description

Meant to be used as a filter on ‘rest_url’ before any call to get_oembed_endpoint_url() is used.

See also See also


Top ↑

Parameters Parameters

$retval

(string) (Optional) Current oEmbed endpoint URL.

Default value: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

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

	public function filter_rest_url( $retval = '' ) {
		return $retval . "/{$this->slug_endpoint}";
	}

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.