
上QQ阅读APP看书,第一时间看更新
Creating a widget
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.