Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unset Places #217

Open
jorgept opened this issue Feb 14, 2022 · 0 comments
Open

Unset Places #217

jorgept opened this issue Feb 14, 2022 · 0 comments

Comments

@jorgept
Copy link

jorgept commented Feb 14, 2022

unset($states
works fine.
but can't make work
unset($places

I'm try these code, but don't work for places/cities in PT

`function scpwoo_remove_places_of_portugal($places) {
global $places;

unset($places['PT']['PO']['Trofa']); // Trofa

return $places['PT'];
}

// Fire our custom data in Places of Portugal dropdown
add_filter('scpwoo_custom_places_pt', 'scpwoo_remove_places_of_portugal' );`

Where
Contry is PT
State PO
Place Trofa

Thanks for your great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant