WordPress.org

Support

Support » Plugins and Hacks » Breadcrumb NavXT » [Resolved] How to Unregister Breadcrumb NavXT Widget

[Resolved] How to Unregister Breadcrumb NavXT Widget

  • 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/

Viewing 1 replies (of 1 total)
  • 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);

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] How to Unregister Breadcrumb NavXT Widget’ is closed to new replies.
Skip to toolbar