Widgets have a control panel that can be changed, for example, to add options for the widget.
WordPress also provides a mechanism to make your widget compatible with various themes. It does this by passing several parameters to your widget's callback function. These parameters include the necessary tags and CSS classes which we need to include in order not to 'break' the theme.
In this example, we will expand our widget by adding additional widget features available to us through WordPress.
We will also learn how to read and save plugin options using WordPress.
Add the function to handle our widget control panel. It will parse the submitted data, save the title and print out the form:
function WPWall_WidgetControl() { // get saved options $options = get_option('wp_wall'); // handle user input if ( $_POST["wall_submit"] ) { $options['wall_title'] = strip_tags( stripslashes( $_POST["wall_title"] ) ); update_option('wp_wall...