1<?php
2add_filter('sanitize_title', 'remove_short_words');
3function remove_short_words($slug) {
4 if (!is_admin()) return $slug;
5 $slug = explode('-', $slug);
6 foreach ($slug as $k => $word) {
7 if (strlen($word) < 3) {
8 unset($slug[$k]);
9 }
10 }
11 return implode('-', $slug);
12}
13?>