wpDiscuz 7 API Documentation

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

wpdiscuz_before_subscription_added

This filter can be used for allowing or disallowing the subscription.

Changelog

since 7.0.0 version

Parameters

1. $add (type: bool) – either allow or disallow the subscription

Usage

add_filter("wpdiscuz_before_subscription_added", function ($add) {
    return false;
});

Was this article helpful to you? Yes No