Title: Works sometimes&#8230;
Last modified: August 22, 2016

---

# Works sometimes…

 *  [zingerion](https://wordpress.org/support/users/zingerion/)
 * (@zingerion)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/works-sometimes-2/)
 * Doesn’t seem to work in much of my code. For example, I am validating some submitted
   data inside one of my classes:
 *     ```
       public function filter_tag( $tag_maybe ) {
          do_action( 'add_debug_info', $tag_maybe, 'Tag Maybe' );
          return preg_match( '/^\s*\w{2,30}\s*$/', $tag_maybe );
       }
       ```
   
 * Any idea why this wouldn’t work?
 * [https://wordpress.org/plugins/debug-bar-custom-info/](https://wordpress.org/plugins/debug-bar-custom-info/)

The topic ‘Works sometimes…’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/debug-bar-custom-info.svg)
 * [Debug Bar Custom Info](https://wordpress.org/plugins/debug-bar-custom-info/)
 * [Support Threads](https://wordpress.org/support/plugin/debug-bar-custom-info/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-bar-custom-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-bar-custom-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-bar-custom-info/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [zingerion](https://wordpress.org/support/users/zingerion/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/works-sometimes-2/)
 * Status: not resolved