init() public method

Perform instance initialization after calling setup()
public init ( )
コード例 #1
0
 /**
  * Initialization tasks
  */
 public function init()
 {
     $this->labels = array('singular_name' => __('Entry', 'carbon_fields'), 'plural_name' => __('Entries', 'carbon_fields'));
     // Include the complex group backbone template
     $this->add_template('Complex-Group', array($this, 'template_group'));
     parent::init();
 }
コード例 #2
0
 /**
  * Initialization tasks.
  */
 public function init()
 {
     $this->labels = array('singular_name' => __('Entry', 'carbon-fields'), 'plural_name' => __('Entries', 'carbon-fields'));
     // Include the complex group Underscore templates
     $this->add_template('Complex-Group', array($this, 'template_group'));
     $this->add_template('Complex-Group-Tab-Item', array($this, 'template_group_tab_item'));
     parent::init();
 }