Support » Plugin: WP Review » Default Review Heading

  • Resolved gmelli

    (@gmelli)



    Is it possible to set up a default “review heading” (e.g., “Please rate this post”)? I have to write it down for every new post and it is very boring.
    Thanks, Gabriele

Viewing 5 replies - 1 through 5 (of 5 total)
  • truongwp

    (@truongwp)

    Hi @gmelli,

    You can try this code:

    add_filter( 'wp_review_get_review_data', function( $data ) {
        $data['heading'] = 'Please rate this post';
        return $data;
    } );

    This works with the 5.0.0 version.

    • This reply was modified 3 months ago by  truongwp.
    gmelli

    (@gmelli)

    Thanks for your reply!

    Where do I have to add this code? (which file?)

    Best wishes,

    Gabriele

    truongwp

    (@truongwp)

    You can add that code to theme’s functions.php file. Let me know if it works or not.

    Thanks.

    gmelli

    (@gmelli)

    No, I’m sorry. It doesn’t work. I’ve tried to add the code at the beginning of the theme’s function.php.

    I’m using Wp Review Pro 3.1.2, not the free version.

    thanks
    Gabriele

    Plugin Author MyThemeShop

    (@mythemeshop)

    Hello,

    For that, please open a support ticket here so we can assist you better:
    https://community.mythemeshop.com/forum/12-plugin-support/?do=add

    You can log in with your MyThemeShop account.

    Looking forward to helping you. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.