Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_filter('idx_plus_street_suffixes', 'idx_plus_modify_street_suffixes');
- /**
- * Add "Garfield" to the list of street suffixes parsed by the URL parser
- *
- * If "192 N Garfield" is the Address, without "St" or "Ave" at the end, then the URL parser will fail
- * to recognize it as an address, so we add "garfield" to the list of street endings.
- *
- * @param array $suffixes
- *
- * @return array
- */
- function idx_plus_modify_street_suffixes( $suffixes = array() ) {
- $suffixes[] = 'garfield';
- return $suffixes;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement