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); // content $this->set_content('content', array('form_control' => 'Text')); 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) { parent::__construct($id, $args); $this->set_post_type($args['post_type']); }