Set permalink for oEmbed link discovery.

Description Description

This method will be called on the page we want to oEmbed. In most cases, you will not need to override this method. However, if you need to, do override in your extended class.

Source Source

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

	protected function set_permalink() {
		$url = bp_get_requested_url();

		// Remove querystring from bp_get_requested_url().
		if ( false !== strpos( bp_get_requested_url(), '?' ) ) {
			$url = substr( bp_get_requested_url(), 0, strpos( bp_get_requested_url(), '?' ) );

		return $url;

Top ↑

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.