apply_filters( 'clanbite_format_notification_response', array $formatted, object $notification )Filter formatted notification for API response.
Filter PHP
Parameters
$formatted(array)Formatted notification.
$notification(object)Original notification object.
Example
add_filter( 'clanbite_format_notification_response', function ( $formatted, $notification ) {
// Change $formatted here.
return $formatted;
}, 10, 2 );Defined in inc/extensions/notifications/class-notification-rest-controller.php