apply_filters( 'bp_rest_message_pre_insert_value', stdClass $prepared_thread, WP_REST_Request $request )

Filters a message before it is inserted via the REST API.

Description

Parameters

$prepared_thread

An object prepared for inserting into the database.

$request

Request object.

Source

File: bp-messages/classes/class-bp-rest-messages-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.