src/Ultra/Mutator/Mutator.php
public function with(array $data)
    {
        foreach($data as $method)
        {
            if(method_exists($this, $method))
            {
                $this->$method();
            }
            elseif(taxonomy_exists($method))
            {
                $this->taxonomy($method);
            }
            elseif(function_exists('get_field'))
            {
                $this->field($method);
            }
        }

        return $this;
    }
public function with(array $data)
    {
        foreach($data as $method)
        {
            if(method_exists($this, $method))
            {
                $this->$method();
            }
            elseif(taxonomy_exists($method))
            {
                $this->taxonomy($method);
            }
            elseif(function_exists('get_field'))
            {
                $this->field($method);
            }
        }

        return $this;
    }
public function with ( array $ data ) { foreach ( $ data as $ method ) { if ( method_exists ( $ this , $ method ) ) { $ this -> $ method ( ) ; } elseif ( taxonomy_exists ( $ method ) ) { $ this -> taxonomy ( $ method ) ; } elseif ( function_exists ( 'get_field' ) ) { $ this -> field ( $ method ) ; } } return $ this ; }
Set which data to include in the data object, additionally
search for an available ACF field if a method can't be
found directly.

@param array $data An array of meta-data slugs
@return Ultra\Mutator\Mutator The mutated data object
Set which data to include in the data object additionally search for an available ACF field if a method can t be found directly .