BP_Core_oEmbed_Extension::filter_rest_url( string $retval = '' )
Append our custom slug endpoint to oEmbed endpoint URL.
Description
Meant to be used as a filter on ‘rest_url’ before any call to get_oembed_endpoint_url() is used.
See also
Parameters
- $retval
-
(string) (Optional) Current oEmbed endpoint URL.
Default value: ''
Return
(string)
Source
File: bp-core/classes/class-bp-core-oembed-extension.php
public function filter_rest_url( $retval = '' ) { return $retval . "/{$this->slug_endpoint}"; }
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.