BP_REST_Media_Endpoint::__construct()
Constructor.
Description
Source
File: bp-media/classes/class-bp-rest-media-endpoint.php
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | public function __construct() { $this -> namespace = bp_rest_namespace() . '/' . bp_rest_version(); $this ->rest_base = 'media' ; $this ->bp_rest_media_support(); add_filter( 'bp_rest_activity_create_item_query_arguments' , array ( $this , 'bp_rest_activity_query_arguments' ), 99, 3 ); add_filter( 'bp_rest_activity_update_item_query_arguments' , array ( $this , 'bp_rest_activity_query_arguments' ), 99, 3 ); add_filter( 'bp_rest_activity_comment_create_item_query_arguments' , array ( $this , 'bp_rest_activity_query_arguments' ), 99, 3 ); add_filter( 'bp_rest_topic_create_item_query_arguments' , array ( $this , 'bp_rest_forums_collection_params' ), 99, 3 ); add_filter( 'bp_rest_topic_update_item_query_arguments' , array ( $this , 'bp_rest_forums_collection_params' ), 99, 3 ); add_filter( 'bp_rest_reply_create_item_query_arguments' , array ( $this , 'bp_rest_forums_collection_params' ), 99, 3 ); add_filter( 'bp_rest_reply_update_item_query_arguments' , array ( $this , 'bp_rest_forums_collection_params' ), 99, 3 ); add_filter( 'bp_rest_messages_group_collection_params' , array ( $this , 'bp_rest_message_query_arguments' ), 99, 3 ); add_filter( 'bp_rest_messages_create_item_query_arguments' , array ( $this , 'bp_rest_message_query_arguments' ), 99, 3 ); add_filter( 'bp_rest_messages_update_item_query_arguments' , array ( $this , 'bp_rest_message_query_arguments' ), 99, 3 ); } |
Changelog
Version | Description |
---|---|
0.1.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.