Carbon_Fields\Container\Nav_Menu_Container::init PHP Method

init() public method

Perform instance initialization after calling setup()
public init ( integer $menu_id, boolean $render = true )
$menu_id integer Used to pass the correct menu_item_id to the Container object
$render boolean Whether the container will render the fields.
    public function init($menu_id = 0, $render = true)
    {
        $this->set_menu_id($menu_id);
        $this->load();
        $this->_attach();
        if (!empty($menu_id) && $render === true) {
            $this->render();
        }
        return $this;
    }