src/Forms/Fields/Types/ChoiceType.php
public function metaboxGet(int $post_id)
    {
        $value = get_post_meta($post_id, $this->getName(), ! $this->getOption('multiple', false));

        if (! empty($value)) {
            $this->setValue($value);
        }
    }
public function metaboxGet(int $post_id)
    {
        $value = get_post_meta($post_id, $this->getName(), ! $this->getOption('multiple', false));

        if (! empty($value)) {
            $this->setValue($value);
        }
    }
public function metaboxGet ( int $ post_id ) { $ value = get_post_meta ( $ post_id , $ this -> getName ( ) , ! $ this -> getOption ( 'multiple' , false ) ) ; if ( ! empty ( $ value ) ) { $ this -> setValue ( $ value ) ; } }
Initialize metabox field value.

@param int $post_id
Initialize metabox field value .