Last active
February 24, 2019 04:23
-
-
Save ohyeahdev/fdcbca8dc89afbb8f539deabe255d013 to your computer and use it in GitHub Desktop.
Código de la sección #develotips del tercer programa de WP LIVE
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 | |
/* | |
* #develotips 003- Tercer programa de WPLIVE | |
* Author: Oh! Yeah Dev | |
* Author URL: https://ohyeahdev.com | |
* Título: Cómo crear shortcodes en WordPress - Parte 1 | |
*/ | |
/* | |
* Descripción | |
* | |
* Se describe cómo crear un shortcode de texto sencillo en WordPress | |
*/ | |
/* | |
* WP Live: Develotip #3 | |
*/ | |
/* Crear shortcode que devuelve texto */ | |
function ohyd_short_texto_despedida(){ | |
$despedida = 'Esto es todo por ahora.<br />'; | |
$despedida .= 'Os recuerdo que podéis valorar este podcast en Itunes y en Ivoox.<br />'; | |
$despedida .= 'Hasta la próxima!!'; | |
return $despedida; | |
} | |
add_shortcode('despedida','ohyd_short_texto_despedida'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment