Is it possible to override this widget
function from a parent theme? I saw this blog, but it dealt with a simpler case.
http://venutip.com/content/right-way-override-theme-functions
parent
class Chocolat_Widget_New_Entrys extends WP_Widget {
function __construct() {...
function widget( $args, $instance ) {...
}
add_action( 'widgets_init', create_function( '', 'return register_widget( "Chocolat_Widget_New_Entrys" );' ) );
I attempted to use remove_action('widgets_init','???');
but soon realized I could not get a handle on the function that registered it!
I thought about overriding the function and creating a subclass, but still, it is registered in the parent by the name of the parent class.
I thought about just copying the whole class, but child functions.php
is loaded before parents.php
.