Require Location
-
I am trying to make a little plugin (or edit existing) that will require Google to validate the users location. Basically I just need to get longitude and latitude when they ender an address, and if google can’t find one reject the address. That’s really all I need but adding:
“is_required ” => true,
to the defaults.php in wpadvers-mal doesn’t seem to change anything like I thought it would based on the documentation. I have made the following change after line 92:array( "name" => "_adverts_mal_latitude", "type" => "adverts_field_hidden", "class" => "_adverts_mal_latitude", "order" => 55, "is_required " => true, "label" => "", ), array( "name" => "_adverts_mal_longitude", "type" => "adverts_field_hidden", "class" => "_adverts_mal_longitude", "order" => 60, "is_required " => true, "label" => "",
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Require Location’ is closed to new replies.