Skip to content

Instantly share code, notes, and snippets.

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 carlaizumibamford/952223c756be82b5e46eff02ec1407fa to your computer and use it in GitHub Desktop.
Save carlaizumibamford/952223c756be82b5e46eff02ec1407fa to your computer and use it in GitHub Desktop.
Creating A Custom Wordpress Widget Plugin Vol 2
class My_Custom_Widget extends WP_Widget {
public function __construct() {
}
public function form( $instance ) {
}
public function update( $new_instance, $old_instance ) {
}
public function widget( $args, $instance ) {
}
}
function my_register_custom_widget() {
register_widget( 'My_Custom_Widget' );
}
add_action( 'widgets_init', 'my_register_custom_widget' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment