Last active
May 11, 2022 18:52
-
-
Save carlaizumibamford/952223c756be82b5e46eff02ec1407fa to your computer and use it in GitHub Desktop.
Creating A Custom Wordpress Widget Plugin Vol 2
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
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