Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shortcode as anonymous function
<?php
add_shortcode('simple-test', function(){
$st_data = 'data';
return $st_data;
});
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment