Created
February 3, 2015 15:39
-
-
Save petenelson/e58a06776261783841c5 to your computer and use it in GitHub Desktop.
WordPress: add_shortcake alias for add_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 | |
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