Created
July 15, 2020 07:57
-
-
Save elshahat/45438897bc6422cea2ca84725f65c5cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function new_shortcode($atts, $content = null) { | |
extract(shortcode_atts(array( | |
“type” => “warning” | |
), $atts)); | |
return '<div class="alert alert-'.$type.'">'.$content.'</div>'; | |
} | |
add_shortcode(“warning_box”, “new_shortcode”); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment