public function __construct($id, $args = array()) { parent::__construct($id, $args); $this->contact_form_counter = null; add_action('g1_shortcode_generator_register', array($this, 'add_shortcode_generator_item')); }
public function __construct($id, $args = array()) { parent::__construct($id, $args); $this->set_content('content', array('form_control' => 'Long_Text', 'label' => __('text_before', 'g1_theme'), 'hint' => __('Text to show above subscription form', 'g1_theme'))); add_action('g1_shortcode_generator_register', array($this, 'add_shortcode_generator_item')); }
public function __construct($id, $args = array()) { parent::__construct($id, $args); //add_action( 'g1_shortcode_generator_register', array( $this, 'add_shortcode_generator_item' ) ); }
public function __construct($id, $args = array()) { parent::__construct($id, $args); // content $this->set_content('content', array('form_control' => 'Text')); add_action('g1_shortcode_generator_register', array($this, 'add_shortcode_generator_item')); }
public function setup_hooks() { parent::setup_hooks(); add_action('init', array($this, 'set_details'), 9999); add_action('wp_loaded', array($this, 'add_special_attributes'), 9999); add_action('g1_shortcode_generator_register', array($this, 'add_shortcode_generator_item')); }
public function init() { /* This will help us nest columns */ $temp = $this->get_id_aliases(); $temp[] = '_' . $this->get_id(); $this->set_id_aliases($temp); parent::init(); }