wpDiscuz 7 API Documentation

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

wpdiscuz_follow_added

This hook works when a new follow is being added.

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_added", function ($args) {
    if (function_exists("my_custom_function")) {
        my_custom_function();
    }
}, 10);

Was this article helpful to you? Yes No