Signature
apply_filters( 'mam_reviews_complete_message', string $message );
| Parameter | Type | Description |
|---|---|---|
$message |
string |
The default “Thank you for your review!” text returned in the submission response. |
What it does
After a full review is saved, the AJAX response carries a message string. This filter lets you replace it programmatically — for example, varying the wording by post type, user, or locale beyond what the static admin fields cover.
For most sites the static Confirmed review message / Pending review message fields on the Reviews settings screen are enough; reach for this filter when the message needs to be computed at submit time. (The submission response also includes a pending flag the app uses to choose between the confirmed and pending messages.)
Example
add_filter( 'mam_reviews_complete_message', function ( string $message ) {
$user = wp_get_current_user();
if ( $user && $user->first_name ) {
return sprintf( 'Thanks, %s — your review is in!', $user->first_name );
}
return $message;
} );
Related articles
- Configure the Reviews settings screen
- Reviews content sections
- Plugin: mam-reviews-manager
Metadata
| Field | Value |
|---|---|
| Article type | Hook Reference |
| Plugin slug | mam-reviews-manager |
| Applies to plugin version | 26.23.0+ |
| Category | Extending MAM Suite |
| Hook type | filter |
| Audience | PHP developer |
| Last verified | 2026-06-04 |
