Title: Quick Filter Request
Last modified: August 31, 2016

---

# Quick Filter Request

 *  Resolved [JK](https://wordpress.org/support/users/justin_k/)
 * (@justin_k)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/quick-filter-request/)
 * Could I request a quick filter addition? For years now, I’ve been modifying the
   plugin to slightly change the “Users Online Now” page to my needs; a filter would
   allow me to do this without needing to hack the plugin after each update 🙂
 * 1) template-tags.php line 220 gets wrapped in a filter, like:
    `$output .= apply_filters("
   useronline_custom_template", "<p><strong>#$nr - $name</strong> $user_ip $_on 
   $date<br/>$page_title $current_link $referral_link</p>\n", $nr, $user);`
 * 2) template-tags.php line 227, remove “private” from format_link (like the other
   static format_* functions).
 * If you’re interested, what I’m doing is adding a 3rd line to each visitor with
   its useragent, so it’s much easier to see at-a-glance which are valid and which
   are unrecognized bots (which I then add to useronline_bots). Vs needing to mouseover
   each visitor to see its useragent 🙂
 * [https://wordpress.org/plugins/wp-useronline/](https://wordpress.org/plugins/wp-useronline/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/quick-filter-request/#post-7425124)
 * How about send in a PR? [https://github.com/lesterchan/wp-useronline](https://github.com/lesterchan/wp-useronline)
 *  Thread Starter [JK](https://wordpress.org/support/users/justin_k/)
 * (@justin_k)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/quick-filter-request/#post-7425132)
 * Done 🙂
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/quick-filter-request/#post-7425173)
 * Merged =)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Quick Filter Request’ is closed to new replies.

 * ![](https://ps.w.org/wp-useronline/assets/icon.svg?rev=978026)
 * [WP-UserOnline](https://wordpress.org/plugins/wp-useronline/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-useronline/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-useronline/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-useronline/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-useronline/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-useronline/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/quick-filter-request/#post-7425173)
 * Status: resolved