shopp_regions

filters the word-wide regions lookup table.

add_filter( 'shopp_regions', [callback] )

@param array $regions the word-wide regions lookup table.

Description

filters the word-wide regions lookup table.

Example

// register filter callback
add_filter('shopp_regions', 'shopp_regions_filter');

// create filter function
function shopp_regions_filter( $regions ) {
    // the built-in regions
    $_[0] = __('North America','Shopp');
    $_[1] = __('Central America','Shopp');
    $_[2] = __('South America','Shopp');
    $_[3] = __('Europe','Shopp');
    $_[4] = __('Middle East','Shopp');
    $_[5] = __('Africa','Shopp');
    $_[6] = __('Asia','Shopp');
    $_[7] = __('Oceania','Shopp');  
    return $regions;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar