mirror of
https://0xacab.org/radar/radar-wp.git
synced 2025-04-30 03:06:29 +02:00
Add filter by country(code).
This commit is contained in:
parent
cc1fc9a941
commit
4424f09f06
2 changed files with 5 additions and 2 deletions
|
@ -53,7 +53,6 @@ function radar_client() {
|
|||
|
||||
function radar_filter($settings) {
|
||||
$filter = new \Radar\Connect\Filter;
|
||||
|
||||
if (!empty($settings['city'])) {
|
||||
$filter->addCity($settings['city']);
|
||||
}
|
||||
|
@ -61,6 +60,9 @@ function radar_filter($settings) {
|
|||
$filter->addGroup($settings['group']);
|
||||
}
|
||||
|
||||
if (!empty($settings['country'])) {
|
||||
$filter->addCountry($settings['country']);
|
||||
}
|
||||
return $filter;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue