Skip to content

Instantly share code, notes, and snippets.

@duroe5698
Created March 22, 2018 20:11
Show Gist options
  • Save duroe5698/a35b254cfc6f16d59c14bfa48675f7fd to your computer and use it in GitHub Desktop.
Save duroe5698/a35b254cfc6f16d59c14bfa48675f7fd to your computer and use it in GitHub Desktop.
Basic WordPress "Wrapper" Shortcode
<?php
//Basic Wrapper Shortcode
function basic_wrapper_sc( $atts, $content = null) {
return '<div class="basic-wrapper-sc">' . $content . '</div>';
}
add_shortcode('basic-wrapper-sc', 'basic_wrapper_sc');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment