apply_filters( 'bp_rest_notifications_pre_insert_value', stdClass $prepared_notification, WP_REST_Request $request )

Filters a notification before it is inserted or updated via the REST API.

Description

Parameters

$prepared_notification

An object prepared for inserting or updating the database.

$request

Request object.

Source

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