• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Plugins » User Tracking » User Tracking Documentation » Filter Hooks » wpmem_ut_display_exclude

wpmem_ut_display_exclude

Description

Filter hook to exclude terms from user tracking stats display table.

Parameters

$excludes
(array)(required) An array of excluded strings that should be excluded from displayed results.

Usage

add_filter( 'wpmem_ut_display_exclude', 'my_wpmem_ut_excluded_terms' );
function my_wpmem_ut_excluded_terms( $excludes ) {
    /*
     * Add any specific strings that would appear in results
     * you want to be excluded from displayed results.
     */
    $excludes[] = '/wp-content/uploads/'; // This would exclude any result with "/wp-content/uploads/" in the URL.
    $excludes[] = '?action=register'; // This would exclude anything with a query string beginning with "action=register".
    
    // Return the array of strings to exclude.
    return $excludes;
}

Notes

The tracking extension records an entry anytime the WP action wp_head is fired.  Depending on the details of your complete application (WP, theme, plugins, etc), wp_head may be fired for actions that are not necessarily a page view.

This filter allows you to “clean up” any extraneous results in your tracking display by excluding certain strings in the recorded URL.  For example, if your application returns results that consistently display direct URLs to your /wp-content/uploads/ folder but you do not want to view those in the table results, you can add this in a filter to exclude from display any URLs containing “/wp-content/uploads/”.

Source

wpmem_ut_display_exclude is located in includes/admin/views/visits.php

Not sure what to do with this code?

You're not a "coder" and don't know what to do? Don't worry! Code Snippets are the basic building blocks of WordPress customization, and once you know the basics, they are simple to use.

Here are some free articles to get you started:

  • Using Code Snippets from the Site
  • Using a code snippets plugin
  • The functions.php File
  • Create a plugin file for custom functions
  • Create a child theme
  • Do not modify plugin files!

For "hands on" help, consider a plugin support subscription or the Pro Bundle.

WP-Members User Tracking

Plugin Info

Current Stable Version: 1.4.7
Minimum WordPress Version: 4.7
Tested up to WordPress Version: 6.8
Last Updated: 2025-05-08

Documentation

    • Setup
    • Settings
    • Shortcodes
    • Filter Hooks
    • Change Log

Get the Plugin

  • Purchase the Plugin
  • Get the Pro Bundle

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy