Skip to content

Instantly share code, notes, and snippets.

@aprakasa
Created December 20, 2012 01:53
Show Gist options
  • Save aprakasa/4342365 to your computer and use it in GitHub Desktop.
Save aprakasa/4342365 to your computer and use it in GitHub Desktop.
/**
* Aqua Page Builder block API
*
* @link https://github.com/sy4mil/Aqua-Page-Builder/wiki/Block-API
*/
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