Skip to content

Instantly share code, notes, and snippets.

@zerobugs-oficial
Created June 18, 2020 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerobugs-oficial/fc3fcfa96c4ec2e5606e58b39e294b75 to your computer and use it in GitHub Desktop.
Save zerobugs-oficial/fc3fcfa96c4ec2e5606e58b39e294b75 to your computer and use it in GitHub Desktop.
WordPress: Criando um Shortcode personalizado - 1
function slink(){
return get_site_url(); // essa função do WordPress retorna a URL do seu site
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment