Contact Form 7 – Autopreenchimento de Endereço

Contact Form 7 – Autopreenchimento de Endereço permite que os campos de logradouro (rua, avenida e etc), bairro, cidade e estado (UF) sejam prenchidos automaticamente baseado no CEP informado.
É necessário que o plugin Contact Form 7 esteja instalado e ativado.
Contact Form 7 – Autopreenchimento de Endereço identifica o campo que irá receber o CEP e os campos a serem preenchidos automaticamente através de classes CSS específicas que informam ao plugin o valor que o campo deve receber.
São elas:
- cf7-cep-autofill no campo em que o usuário deve preencher o CEP
- cf7-cep-autofill__rua para receber o valor do logradouro
- cf7-cep-autofill__bairro para receber o valor do bairro
- cf7-cep-autofill__cidade para receber o valor da cidade
- cf7-cep-autofill__uf para receber o valor do estado
Exemplos:
[text* cep class:cf7-cep-autofill]
[text* logradouro class:cf7-cep-autofill__rua]
[text* bairro class:cf7-cep-autofill__bairro]
[text* cidade class:cf7-cep-autofill__cidade]
[text* estado class:cf7-cep-autofill__uf]
Caso o campo da UF seja do tipo select (menu suspenso):
[select* estado class:cf7-cep-autofill__uf include_blank "AC" "AL" "AP" "AM" "BA" "CE" "DF" "ES" "GO" "MA" "MT" "MS" "MG" "PA" "PB" "PR" "PE" "PI" "RJ" "RN" "RS" "RO" "RR" "SC" "SP" "SE " "TO"]
Dúvidas?
Você pode esclarecer suas dúvidas criando um tópico no fórum de ajuda do WordPress.
Créditos
Foram utilizados os seguintes scripts/serviços de terceiros:
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



