Skip to content

Instantly share code, notes, and snippets.

@petenelson
Created February 3, 2015 15:39
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 petenelson/e58a06776261783841c5 to your computer and use it in GitHub Desktop.
Save petenelson/e58a06776261783841c5 to your computer and use it in GitHub Desktop.
WordPress: add_shortcake alias for add_shortcode
<?php
if ( function_exists( 'add_shortcode' ) && ! function_exists( 'add_shortcake' ) ) {
// tasty WordPress add_shortcode alias, for @technosailor
function add_shortcake( $tag, $func ) {
add_shortcode( $tag, $func );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment