wpDiscuz 7 API Documentation

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

wpdiscuz_content_modal_title

This filter can be used to display a title of the newly added tab in “My Content and Settings”.

Changelog

since 7.0.0 version

Parameters

1. $html (type: string) – the title of the newly added tab in “My Content and Settings”
2. $currentUser (type: WP_User object) – the user object that is logged in at the current time

Usage

add_filter("wpdiscuz_content_modal_title", function ($html, $currentUser) {
    if (!empty($currentUser->ID)) {
        $html .= "
  • Custom Tab Title
  • "; } return $html; }, 10, 2);

    Was this article helpful to you? Yes No