Support » Plugins » How to use the_widget() to ignore a widget?

  • Hi,

    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?


  • The topic ‘How to use the_widget() to ignore a widget?’ is closed to new replies.