Skip to content

Instantly share code, notes, and snippets.

@westonruter
Last active August 29, 2015 14:13
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 westonruter/cbd9dba93fcb9d928763 to your computer and use it in GitHub Desktop.
Save westonruter/cbd9dba93fcb9d928763 to your computer and use it in GitHub Desktop.
<?php
class Wide_Widget extends WP_Widget {
public function __construct() {
$id_base = 'wide';
$name = __( 'So Wide');
$widget_options = array(
'description' => __( 'Behold my size!' ),
);
$control_options = array(
'width' => 600,
'height' => 500,
);
parent::__construct( $id_base, $name, $widget_options, $control_options );
}
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment