Skip to content

Instantly share code, notes, and snippets.

@ohyeahdev
Last active February 24, 2019 04:23
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 ohyeahdev/fdcbca8dc89afbb8f539deabe255d013 to your computer and use it in GitHub Desktop.
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
<?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