Creating widgets is a simple three step process.
Create a function that will display the widget content.
Register that function as a widget using WordPress API.
Done! To enable the widget you need to activate it now in the administration panel.
Let's start our widget by displaying the 'Hello World!' text in the sidebar.
As usual, we will start building our plugin with the necessary plugin information.
Later, we will create a function to display Hello World text and then register that function as a widget.
Create a new
wp-wall.php
file. Insert the following plugin information:/* Plugin Name: WP Wall Version: 0.1 Description: "Wall" widget that appears in your blog's side bar Users can add a quick comment and it will appear in the sidebar immediately (without reloading the page). Author: Vladimir Prelovac Author URI: http://www.prelovac.com/vladimir Plugin URI: http://www.prelovac.com/vladimir...