apply_filters( 'bp_rest_attachments_group_avatar_prepare_value', WP_REST_Response $response, WP_REST_Request $request, stdClass|string $avatar )

Filter a group avatar value returned from the API.


Parameters Parameters

$response

(WP_REST_Response) Response.

$request

(WP_REST_Request) Request used to generate the response.

$avatar

(stdClass|string) Avatar object or string with url or image with html.


Source Source

File: bp-groups/classes/class-bp-rest-attachments-group-avatar-endpoint.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.