Created
July 9, 2021 13:24
-
-
Save juniorthiesen/1715ebc282256bb5606e0f6ecb8a2745 to your computer and use it in GitHub Desktop.
short code - divisor link
This file contains hidden or 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
add_shortcode('testar-gratis', function ($atts = array(), $content = null) { | |
$links = array( | |
array('link' => 'https://api.whatsapp.com/send?phone=5551982657024&text=Eu%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'TESTAR GRÁTIS'), | |
array('link' => 'https://api.whatsapp.com/send?phone=555194485373&text=Eu%20quero%20Testar%20e%20mais%20informa%C3%A7%C3%B5es!', 'title' => 'TESTAR GRÁTIS'), | |
array('link' => 'https://api.whatsapp.com/send?phone=5551983166850&text=Eu%20E%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'TESTAR GRÁTIS'), | |
array('link' => 'https://api.whatsapp.com/send?phone=5551982365761&text=Eu%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'TESTAR GRÁTIS') | |
); | |
$r = array_rand($links); | |
return '<a href="' . $links[$r]['link'] . '">' . $links[$r]['title'] . '</a>'; | |
}); | |
add_shortcode('eu-quero', function ($atts = array(), $content = null) { | |
$links = array( | |
array('link' => 'https://api.whatsapp.com/send?phone=5551982657024&text=Eu%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'EU QUERO'), | |
array('link' => 'https://api.whatsapp.com/send?phone=555194485373&text=Eu%20quero%20Testar%20e%20mais%20informa%C3%A7%C3%B5es!', 'title' => 'EU QUERO'), | |
array('link' => 'https://api.whatsapp.com/send?phone=5551983166850&text=Eu%20E%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'EU QUERO'), | |
array('link' => 'https://api.whatsapp.com/send?phone=5551982365761&text=Eu%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'EU QUERO') | |
); | |
$r = array_rand($links); | |
return '<a href="' . $links[$r]['link'] . '">' . $links[$r]['title'] . '</a>'; | |
}); | |
add_shortcode('revenda', function ($atts = array(), $content = null) { | |
$links = array( | |
array('link' => 'https://api.whatsapp.com/send?phone=5551982657024&text=Eu%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'QUERO SER'), | |
array('link' => 'https://api.whatsapp.com/send?phone=555194485373&text=Eu%20quero%20Testar%20e%20mais%20informa%C3%A7%C3%B5es!', 'title' => 'QUERO SER'), | |
array('link' => 'https://api.whatsapp.com/send?phone=5551983166850&text=Eu%20E%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'QUERO SER'), | |
array('link' => 'https://api.whatsapp.com/send?phone=5551982365761&text=Eu%20quero%20Informa%C3%A7%C3%B5es%20e%20testar!', 'title' => 'QUERO SER') | |
); | |
$r = array_rand($links); | |
return '<a href="' . $links[$r]['link'] . '">' . $links[$r]['title'] . '</a>'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment