• Hi,

    I a still very happy with this plugin. Awesome to see that people are actually leaving reviews.

    Here is another request. If someone writes a review, you can get an e-mail notification with the review details, but not what the review is for. So you always have to click through to the post edit screen to see that.

    I’d like to see be able to include the post title in that notification e-mail. Maybe something like {review_post_title}?

    Thanks
    JP

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    You can use {review_title} to show the review title. Do you mean the title of the post that the review is assigned to?

    • This reply was modified 8 years, 4 months ago by Gemini Labs.

    Yes I mean the title of the post that the review is assigned to.
    Not {review_title}, that’s the title of the review itself.

    Plugin Author Gemini Labs

    (@geminilabs)

    Please update to v2.10.3

    This update adds the title of the post that a review is assigned to to the subject of the notification email.

    You can also easily add a custom template tag yourself by using the “site-reviews/notification/template-tags” filter hook in your theme’s functions.php file.

    Here is an example of how to add a custom {assigned_to_title} template tag:

    /**
     * Adds a custom template tag to Site Reviews notifications
     */
    add_filter( 'site-reviews/notification/template-tags', function( $templateTags, $command ) {
        if( $assignedToTitle = get_the_title( (int) $command->assignedTo )) {
            $templateTags['assigned_to_title'] = $assignedToTitle;
        }
        return $templateTags;
    }, 10, 2 );

    Awesome, thank you so much!
    Happy with your quick support and help.

    JP

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Request for a post title variable in the notification template’ is closed to new replies.