Timber\TermGetter::get_term_query_from_array PHP Method

get_term_query_from_array() public static method

public static get_term_query_from_array ( array $args ) : stdClass | null
$args array
return stdClass | null
    public static function get_term_query_from_array($args)
    {
        if (is_array($args) && !empty($args)) {
            //okay its an array with content
            if (is_int($args[0])) {
                return self::get_term_query_from_array_of_ids($args);
            } else {
                if (is_string($args[0])) {
                    return self::get_term_query_from_array_of_strings($args);
                }
            }
        }
        return null;
    }