do_action( 'bp_rest_topic_create_item', array $topic, WP_REST_Response $response, WP_REST_Request $request )

Fires after a topic is created and fetched via the REST API.

Description

Parameters

$topic

(array) Created topic.

$response

(WP_REST_Response) The response data.

$request

(WP_REST_Request) The request sent to the API.

Source

File: bp-forums/classes/class-bp-rest-topics-endpoint.php

Changelog

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.