Skip to content

Instantly share code, notes, and snippets.

@domantasg
Last active June 17, 2017 16:53
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/295e26a8e94e12471f245d058d749df0 to your computer and use it in GitHub Desktop.
Save domantasg/295e26a8e94e12471f245d058d749df0 to your computer and use it in GitHub Desktop.
public function widget( $args, $instance ) {
$title = apply_filters( 'widget_title', $instance['title'] );
echo $args['before_widget'];
//if title is present
if ( ! empty( $title ) )
echo $args['before_title'] . $title . $args['after_title'];
//output
echo __( 'Hello, World from Hostinger.com', 'hstngr_widget_domain' );
echo $args['after_widget'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment