Created
May 11, 2020 18:02
-
-
Save Rhytz/97a0ef658c9625b18b5f9dc875697692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pgmb_enable_all_locations($locations){ | |
foreach($locations as &$location){ | |
$location->locationState->isLocalPostApiDisabled = false; | |
} | |
return $locations; | |
} | |
add_filter('mbp_business_selector_locations', 'pgmb_enable_all_locations'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment