Skip to content

Instantly share code, notes, and snippets.

@domantasg
Last active June 17, 2017 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domantasg/dcd7ff3682b9e76359edfa014bd99ac5 to your computer and use it in GitHub Desktop.
Save domantasg/dcd7ff3682b9e76359edfa014bd99ac5 to your computer and use it in GitHub Desktop.
public function update( $new_instance, $old_instance ) {
$instance = array();
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
return $instance;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment