-3
function wp_load_widget() {
    register_widget( 'wp_widget' );
}
add_action( 'widgets_init', 'wp_load_widget' );

class wp_widget extends WP_Widget {

function __construct() {
parent::__construct( 'wp_widget', __('WPBeginner Widget', 'wp_widget_domain'), array( 'description' => __( 'Sample widget based on WPBeginner Tutorial', 'wp_widget_domain' ), ) 
);
}

closed as unclear what you're asking by fuxia Apr 30 at 13:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

Not the answer you're looking for? Browse other questions tagged or ask your own question.