src/Taxonomy/TaxonomyField.php
protected function register()
    {
        return function () {
            foreach ($this->repository as $field) {
                register_meta('term', $field->getName(), [
                    'type' => $field->getOption('data_type', 'string'),
                    'single' => ! $field->getOption('multiple', false),
                    'show_in_rest' => $field->getOption('show_in_rest', false),
                    'sanitize_callback' => $this->sanitize($field)
                ]);
            }
        };
    }
protected function register()
    {
        return function () {
            foreach ($this->repository as $field) {
                register_meta('term', $field->getName(), [
                    'type' => $field->getOption('data_type', 'string'),
                    'single' => ! $field->getOption('multiple', false),
                    'show_in_rest' => $field->getOption('show_in_rest', false),
                    'sanitize_callback' => $this->sanitize($field)
                ]);
            }
        };
    }
protected function register ( ) { return function ( ) { foreach ( $ this -> repository as $ field ) { register_meta ( 'term' , $ field -> getName ( ) , [ 'type' => $ field -> getOption ( 'data_type' , 'string' ) , 'single' => ! $ field -> getOption ( 'multiple' , false ) , 'show_in_rest' => $ field -> getOption ( 'show_in_rest' , false ) , 'sanitize_callback' => $ this -> sanitize ( $ field ) ] ) ; } } ; }
Return the callback used to register term meta.

@return \Closure
Return the callback used to register term meta .