• Resolved mrashrafmohamed

    (@mrashrafmohamed)


    hello
    thanks for the great plugin
    i need to rearrange the submition form fiels
    i want it to be that way:
    -content
    -title
    -name

    is there is a wat to add a template for that like the review temp?

    thanks

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

    (@geminilabs)

    You have two options:

    1. You can use the following filter hook to change the order of the fields:

    /**
     * Customises the order of the fields used in the Site Reviews review form.
     * @param array $order
     * @return array
     */
    add_filter('site-reviews/review-form/order', function ($order) {
        // The $order array contains the field keys returned below.
        // change the order of the keys to change the order that they are displayed in the form.
        return [
            'rating',
            'title',
            'content',
            'name',
            'email',
            'terms',
        ];
    });

    2. You can use the Review Forms add-on.

    Thread Starter mrashrafmohamed

    (@mrashrafmohamed)

    thank you very much
    that really helped a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘rearrange form fields’ is closed to new replies.