Carbon_Fields\Container\Theme_Options_Container::init PHP Method

init() public method

Attach container as a theme options page/subpage.
public init ( )
    public function init()
    {
        if (!$this->settings['parent'] || $this->settings['parent'] == 'self') {
            $this->settings['parent'] = '';
        } else {
            if (strpos($this->settings['parent'], '.php') === false) {
                $clear_title = $this->clear_string($this->settings['parent']);
                $this->settings['parent'] = 'crbn-' . $clear_title . '.php';
            }
        }
        if (!$this->settings['file']) {
            $clear_title = $this->clear_string($this->title);
            $this->settings['file'] .= 'crbn-' . $clear_title . '.php';
        }
        $this->verify_unique_page();
        add_action('admin_menu', array($this, '_attach'));
    }