wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Actions
  5. wpdiscuz_follow_cancelled
Generic selectors
Exact matches only
Search in title
Search in content

wpdiscuz_follow_cancelled

This hook works when a new follow is being cancelled.

Changelog

since 7.1.0 version

Parameters

$args (type: array) – the info about the follower and the user that is being followed

Usage

 add_action("wpdiscuz_follow_cancelled", function ($args) {
    if (function_exists("my_custom_function")) {
        my_custom_function();
    }
}, 10); 

Was this article helpful to you? Yes No