src/Fields/Field.php
public function save($object, $values)
    {
        $value = isset($values[$this->id])
            ? apply_filters('cuztom_field_save_value', $this->parseValue($values[$this->id]), $this)
            : false;

        // Do
        do_action('cuztom_field_save', $this);

        // Save to respective content-type
        switch ($this->metaType) {
            case 'user':
                return (bool) update_user_meta($object, $this->id, $value);
            case 'term':
                return (bool) update_term_meta($object, $this->id, $value);
            case 'post':
                return (bool) update_post_meta($object, $this->id, $value);
        }

        // Default
        return false;
    }
public function save($object, $values)
    {
        $value = isset($values[$this->id])
            ? apply_filters('cuztom_field_save_value', $this->parseValue($values[$this->id]), $this)
            : false;

        // Do
        do_action('cuztom_field_save', $this);

        // Save to respective content-type
        switch ($this->metaType) {
            case 'user':
                return (bool) update_user_meta($object, $this->id, $value);
            case 'term':
                return (bool) update_term_meta($object, $this->id, $value);
            case 'post':
                return (bool) update_post_meta($object, $this->id, $value);
        }

        // Default
        return false;
    }
public function save ( $ object , $ values ) { $ value = isset ( $ values [ $ this -> id ] ) ? apply_filters ( 'cuztom_field_save_value' , $ this -> parseValue ( $ values [ $ this -> id ] ) , $ this ) : false ; // Do do_action ( 'cuztom_field_save' , $ this ) ; // Save to respective content-type switch ( $ this -> metaType ) { case 'user' : return ( bool ) update_user_meta ( $ object , $ this -> id , $ value ) ; case 'term' : return ( bool ) update_term_meta ( $ object , $ this -> id , $ value ) ; case 'post' : return ( bool ) update_post_meta ( $ object , $ this -> id , $ value ) ; } // Default return false ; }
Save meta.

@param  int   $object
@param  mixed $value
@return bool
Save meta .