BP_REST_Activity_Details_Endpoint::get_activities_filters()
Get list of filters supported for activity component.
Description
Return
(array)
Source
File: bp-activity/classes/class-bp-rest-activity-details-endpoint.php
public function get_activities_filters() { // BuddyPress Docs @https://wordpress.org/plugins/buddypress-docs/ . if ( function_exists( 'bp_docs_load_activity_filter_options' ) ) { bp_docs_load_activity_filter_options(); } // BuddyPress legacy template support added. if ( function_exists( 'bp_nouveau_get_activity_filters' ) ) { $activity_filters = bp_nouveau_get_activity_filters(); } else { $activity_filters = $this->bp_rest_legacy_get_activity_filters(); } $filters = array( '-1' => __( '-- Everything --', 'buddyboss' ) ) + $activity_filters; return $filters; }
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.