src/Forms/Fields/Types/ChoiceType.php
public function metaboxSave($value, int $post_id)
    {
        $this->setValue($value);

        if (! $this->getOption('multiple', false)) {
            // Store single value.
            $this->saveSingleValue($this->getRawValue(), $post_id);
        } else {
            // Store multiple values.
            $this->saveMultipleValue($this->getRawValue(), $post_id);
        }
    }
public function metaboxSave($value, int $post_id)
    {
        $this->setValue($value);

        if (! $this->getOption('multiple', false)) {
            // Store single value.
            $this->saveSingleValue($this->getRawValue(), $post_id);
        } else {
            // Store multiple values.
            $this->saveMultipleValue($this->getRawValue(), $post_id);
        }
    }
public function metaboxSave ( $ value , int $ post_id ) { $ this -> setValue ( $ value ) ; if ( ! $ this -> getOption ( 'multiple' , false ) ) { // Store single value. $ this -> saveSingleValue ( $ this -> getRawValue ( ) , $ post_id ) ; } else { // Store multiple values. $ this -> saveMultipleValue ( $ this -> getRawValue ( ) , $ post_id ) ; } }
Handle metabox field value registration.

@param string|array $value
@param int          $post_id
Handle metabox field value registration .