filters the postcode lookup table.

add_filter( 'shopp_postcodes', [callback] )

@param array $table postcode lookup table


filters the postcode lookup table.

This table contains post codes and post code prefixes and identifies a zone (state/province) for several countries.

The table is indexed by two letter country codes, and the contents can be formatted differently to suit the needs for different countries.


// register filter callback
add_filter('shopp_postcodes', 'shopp_postcodes_filter');

// create filter function
function shopp_postcodes_filter( $table ) {
    $table['GB'] = array('UB'=>'Middlesex');
    return $table;

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.