Filter: classifai_openai_moderation_request_body

apply_filters( 'classifai_openai_moderation_request_body', $body, $comment_id ) → {array}

Filter the request body before sending to OpenAI.

Parameters:
Name Type Description
$body array

Request body that will be sent to OpenAI.

$comment_id int

ID of comment we are moderating.

Since:
  • 3.0.0
Source:
Returns:

Request body.

Type
array