src/Registrar.php
private function registerSettings(SectionInterface $section)
    {
        array_map(
            function (FieldInterface $field) {
                register_setting(
                    $this->pageSlug,
                    $field->getId(),
                    $field->getAdditionalArguments()
                );
            },
            $section->getFields()
        );
    }
private function registerSettings(SectionInterface $section)
    {
        array_map(
            function (FieldInterface $field) {
                register_setting(
                    $this->pageSlug,
                    $field->getId(),
                    $field->getAdditionalArguments()
                );
            },
            $section->getFields()
        );
    }
Register a setting and its data with WordPress.

@param SectionInterface $section Section which holds a list of its fields.

@return void