wpDiscuz 7 API Documentation

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

wpdiscuz_user_settings_button

This hook can be used for changing the HTML of the “My Content & Settings” button.

Changelog

since 7.2.0 version

Parameters

1. $html (type: string) – the HTML of the “My Content & Settings” button.
2. $currentUser (type: WP_User object) – the object of the current user (in the case of gusts it’ll be empty)
3. $currentUserEmail (type: string) – the mail of current user (if the email of the guest is saved in cookies, the email will exist)

Usage

add_filter("wpdiscuz_user_settings_button", function ($html, $currentUser, $currentUserEmail) {
    return "";
}, 10, 3);

Was this article helpful to you? Yes 1 No