Category Covered

how to create wordpress custom widget

On the following way you can create a wordpress custom widget.

 

function wordpressCustomWidget_init()
{
  register_sidebar_widget(__('My Widget Name'), 'my_widget');
}

add_action("plugins_loaded", "wordpressCustomWidget_init");