How to use the_widget() to ignore a widget? (1 post)

  1. dvanliere@gmail.com
    Posted 6 years ago #


    I am writing a plugin that does some simple string manipulation. One of the hooks that call my plugin is get_comment_author. However, I do not want my plugin to run when the hook is activated from the the Recent Comments Widget. I have tried stuff like if(!the_widget('widget_recent_comments') { } and countless variations but my plugin is still triggered from the widget. How do I ignore the Recent Comment widget?


Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 6 years ago by dvanliere@gmail.com
  • This topic is not resolved
  • WordPress version: 2.9