Support » Plugin: Site Reviews » Location / customizable fields?

  • Resolved pikamander2


    Hi there, I was wondering if there’s any way to add a “location” field to the plugin, or maybe a “city” and “state” field?

    My goal is to have users submit where they’re from so that their names show up as “John from Brooklyn, NY” instead of just “John”.

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


    1. Adding custom fields to the form is not actively supported. However, if you would like to do this on your own, please see:

    2. You can use the site-reviews/get/review hook to modify the review fields before they are shown on the page. For example:

    add_filter( 'site-reviews/get/review', function( $review, $post ) {
        // change the review object here as needed
        glsr_debug( $review ); // prints the review object to the screen so you can see which key to change
        return $review;
    }, 10, 2 );
Viewing 1 replies (of 1 total)
  • The topic ‘Location / customizable fields?’ is closed to new replies.