wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_product_review_replies
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

wpdiscuz_product_review_replies

This hook allows you to either enable or disable the reply button of the WooCommerce reviews.

Changelog

Added in version 7.0.6

Parameters

1. $enable (type: bool) – either enable or disable the reply button of the WooCommerce reviews
2. $postId (type: int) – the post ID where the reply button should be enabled or disabled

Usage

add_filter("wpdiscuz_product_review_replies", function ($enable, $postId) {
    return false;
}, 10, 2);

Was this article helpful to you? Yes No