Created
September 18, 2019 08:22
-
-
Save michaeldeboeve/1d5c436b89721ad539e930afd3a06cb3 to your computer and use it in GitHub Desktop.
Simple shortcode
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 | |
function my_shortcode( $atts, $content = null ) { | |
return '<span class="myshortcode-class">' . $content . '</span>'; | |
} | |
add_shortcode( 'myshortcode', 'my_shortcode' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment