BP_Activity_oEmbed_Extension::set_route_args()
Add custom endpoint arguments.
Description
Currently, includes ‘hide_media’.
Return
(array)
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' ) ); }
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.