function cicw_load_widgets() {
register_widget( 'CI_Crypto_Widget' );
}
add_action( 'widgets_init', 'cicw_load_widgets' );
class CI_Crypto_Widget extends WP_Widget {
public function __construct() {
parent::__construct( 'ci-crypto-widget', esc_html__( 'CI Crypto Widget', 'cicw' ), array( 'description' => esc_html__( 'Displays information about a specific cryptocurrency.', 'cicw' ) ) );
}
public function widget( $args, $instance ) {
echo $args['before_widget'];
?><p>Hello, world!</p><?php
echo $args['after_widget'];
}
}