Skip to content

Instantly share code, notes, and snippets.

@syamilmj
Created October 17, 2012 13:29
Show Gist options
  • Save syamilmj/3905528 to your computer and use it in GitHub Desktop.
Save syamilmj/3905528 to your computer and use it in GitHub Desktop.
AQ_Block
class My_Custom_Block extends AQ_Block {
function __construct() {
// block actual processes
}
function form( $instance ) {
// outputs the options form on admin
}
function update( $new_instance, $old_instance ) {
// processes block options to be saved
}
function block( $instance ) {
// outputs the content of the block
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment