• Resolved khhelpname

    (@khhelpname)


    How do I change the title from dispatching? I’ve looked in setting and couldn’t find it.

    The page I need help with: [log in to see the link]

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

    (@geminilabs)

    It sounds like you are asking how to modify the title of a review when it is submitted. Is that correct? If so, please see the Hooks help page which explains how to modify the submitted review values before the review is created.

    Hi there,
    Many thank for your plugin, it works like a charm !!
    After looking to the hooks & FAQ, I achieved to set the title to “Review_” but now I would like to add the review_id to it.
    My goals is that all review title will have the same structure “Review_”+review_id
    Thanks in advance for you time

    Plugin Author Gemini Labs

    (@geminilabs)

    You can use the site-reviews/review/created hook which provides the created review, and use the review ID to update the review post title.

    wp_update_post([
        'ID' => $review->ID,
        'post_title' => 'Review_'.$review->ID,
    ]);

    If you do this, you will probably also want to use the hide option on the form shortcode to hide the title field.

    BOOM & Wahou !!!
    Excellent, it works perfectly
    Many thanks

    Plugin Author Gemini Labs

    (@geminilabs)

    In v5.11.0 you will also be able to do this:

    glsr_update_review($review->ID, [
        'title' => 'Review_'.$review->ID,
    ]);
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Update title’ is closed to new replies.