WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
[resolved] How to Unregister Breadcrumb NavXT Widget (2 posts)

  1. cinderalla
    Member
    Posted 1 year ago #

    I'm trying to remove the widget from Appearance > Widgets > Available Widgets but can't figure out what the widget ID is so I can use the unregister_widget() function. This is what I have in my functions.php so far:

    function mytheme_remove_widgets(){
    unregister_widget('_widget');
    }
    add_action('widgets_init',mytheme_remove_widgets', 1);

    http://wordpress.org/extend/plugins/breadcrumb-navxt/

  2. cinderalla
    Member
    Posted 1 year ago #

    I found the answer to my question and just wanted to add it here in case it can help anyone else. The widget ID is bcn_widget and the priority argument was too high. Here's what works in functions.php to remove the widget from the available widgets:

    function mytheme_remove_widgets(){
       unregister_widget('bcn_widget');
    }
    add_action('widgets_init',mytheme_remove_widgets', 11);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic