Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2.  
  3. add_filter('idx_plus_street_suffixes', 'idx_plus_modify_street_suffixes');
  4.  
  5. /**
  6. * Add "Garfield" to the list of street suffixes parsed by the URL parser
  7. *
  8. * If "192 N Garfield" is the Address, without "St" or "Ave" at the end, then the URL parser will fail
  9. * to recognize it as an address, so we add "garfield" to the list of street endings.
  10. *
  11. * @param array $suffixes
  12. *
  13. * @return array
  14. */
  15. function idx_plus_modify_street_suffixes( $suffixes = array() ) {
  16.  
  17. $suffixes[] = 'garfield';
  18.  
  19. return $suffixes;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement