This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Registers a new sidebar with the theme. | |
* | |
* Note: replace 'themename' with the name of your theme. | |
*/ | |
function themename_add_sidebar() { | |
/* | |
* Description of the parameter array is as follows: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This function is part of the WordPress Widget API. | |
* | |
* It's fired when the widget is being updated and using the incoming | |
* $new_instance to update the values stored in the incoming $old_instance. | |
* | |
* We're allowing users to store CSS and HTML in their input field but we're | |
* stripping out JavaScript tags. | |
*/ | |
public function update( $new_instance, $old_instance ) { |
NewerOlder