Skip to content
Docs
Get RestroPress

Filter

rpress_angola_provinces

Updated
On this page

Filters the list of provinces returned for Angola.

Applied at the end of rpress_get_angola_provinces_list(), which rpress_get_states() calls when the selected country is AO. The array maps a code to a display name (province code => name). Add, remove or rename entries to change what appears in the state selector for this country.

Parameters#

ParameterTypeDescription
$provincesarrayAssociative array of province code => name.

Return value#

array. The list of provinces for Angola.

Example#

function my_add_angola_provinces( $provinces ) {
	$provinces['XX'] = 'My Custom Region';
	return $provinces;
}
add_filter( 'rpress_angola_provinces', 'my_add_angola_provinces' );

Source#

Applied in:

  • includes/country-functions.php (line 498), in rpress_get_angola_provinces_list()

See also#

Was this page helpful?