WordPress.org

Support

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

How to use the_widget() to ignore a widget?

  • dvanliere@gmail.com
    Member

    @dvanlieregmailcom

    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?

    thanks,
    Diederik

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