Moderation request

The Controller class includes a convenience method to submit a snippet of text to the Customizer Moderation Service. The level of moderation (Basic or Advanced) depends on the currently contracted Customizer addons.

A text string can be submitted using reviewText method:

const result = await controller.reviewText('text');

The controller will automatically configure the moderation request using the current site and locale.

The moderation result shall be an objected containing the review status.

Attribute

Description

hasProfanity true/false

Indicates whether the text contains profanities.

reviewRecommended true/false

Indicates whether the text may contain sensitive topics and shall be reviewed by the site operators