Home Forums Unicon Unregister Widget

Home Forums Unicon Unregister Widget

  • Creator
    Ticket
  • #86828
    uniganzy
    Buyer

    Hello,
    i want to write my own portfolio widget.
    Why i am not able to unregister the minit portfolio widget in the function.php in my child theme?
    The wp widgets i am able to unregister successfully .

    function parent_unregister_widgets() {
     
        // remove (some) WordPress default Widgets
        unregister_widget( 'WP_Widget_Media_Audio' );
        unregister_widget( 'WP_Widget_Archives' );
    	unregister_widget( 'WP_Widget_Categories' );
    	unregister_widget( 'WP_Widget_Meta' );
    	unregister_widget( 'WP_Widget_Recent_Posts' );
    	unregister_widget( 'WP_Widget_RSS' );
    	unregister_widget( 'WP_Widget_Tag_Cloud' );
    	unregister_widget( 'WP_Widget_Media_Video' );
     
        // remove Parent registered Widget
    	unregister_widget('widget_portfolio');
     
    }
    
    add_action( 'widgets_init', 'parent_unregister_widgets', 10 );

    Thanks,
    fraganzy

Sorry, only verified customers can view ticket replies.