Closed marbetschar closed 8 years ago
It is maybe just enough to check the Code Snippet as "Shortcode" and the slug could be used as shortcode name. So adding a setting "Shortcode true/false" should be enough!
This plugin is exclusively for displaying snippets, not running them. There are other snippet plugins out there for executing code, and I don't want to take on that liability. Here is one I have seen by Crowd Favorite: https://github.com/crowdfavorite/wp-cf-snippets
Ok!
It would be cool to set a shortcode for a Code Snippet for later used from within a blog post for example. Maybe this should just be possible for the PHP language.
For example to define a shortcode
[current_year]
as follows: