public static function createMultiple($terms, $taxonomy = null)
    {
        if (!Arr::iterable($terms)) {
            return $terms;
        }
        
        $out = array();
        foreach ($terms as $term) {
            $instance = self::create($term, $taxonomy);
            $out[$instance->get('term_id')] = $instance;
        }
        return $out;
    }
public static function createMultiple($terms, $taxonomy = null)
    {
        if (!Arr::iterable($terms)) {
            return $terms;
        }
        
        $out = array();
        foreach ($terms as $term) {
            $instance = self::create($term, $taxonomy);
            $out[$instance->get('term_id')] = $instance;
        }
        return $out;
    }
public static function createMultiple ( $ terms , $ taxonomy = null ) { if ( ! Arr :: iterable ( $ terms ) ) { return $ terms ; } $ out = array ( ) ; foreach ( $ terms as $ term ) { $ instance = self :: create ( $ term , $ taxonomy ) ; $ out [ $ instance -> get ( 'term_id' ) ] = $ instance ; } return $ out ; }
Create multiple instances based on term objects
This basically autoloads the meta data
@param array $terms
@param string $taxonomy
@return array
Create multiple instances based on term objects This basically autoloads the meta data