BP_Activity_oEmbed_Extension::set_route_args()

Add custom endpoint arguments.


Description Description

Currently, includes ‘hide_media’.


Return Return

(array)


Top ↑

Source Source

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

	protected function set_route_args() {
		return array(
			'hide_media' => array(
				'default' => false,
				'sanitize_callback' => 'wp_validate_boolean'
			)
		);
	}

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.