İlk cevabıda benden olsun. functions.php dosyasında

/*
* Plugin Name: Örnek Bileşen
* Plugin URI: http://teknoonur.biz
* Description: Açıklama
* Version: 1.0
* Author: Onur Kınay
* Author URI: http://teknoonur.biz
*/

add_action( 'widgets_init', 't1_bilesen_widgets' );

function t1_bilesen_widgets() {
register_widget( 't1_bilesen_widget' );
}

class t1_bilesen_widget extends WP_Widget {

function t1_bilesen_widget() {

/* Widget settings */
$widget_ops = array( 'classname' => 'widgetl', 'description' => __('Amaçı.', 't1') );

/* Create the widget */
$this->WP_Widget( 't1_bilesen_widget', __('Bileşen adı', 't1'), $widget_ops );
}

function widget( $args, $instance ) {

?>
KODLAR BURAYA HOCAM :)
echo $after_widget;
}

function update( $new_instance, $old_instance ) {}

function form( $instance ) {

$instance = wp_parse_args( (array) $instance, $defaults ); ?>


Bileşenin Ayalarını Paneden Yapın! :)



}
}

?>

YAZMAN GEREKLİ
değiştirmen gereken alan /* */ alanlar ve t1 kısmı