Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function shortcode_with_attributes( $atts, $content = null ) {
- extract( shortcode_atts( array(
- 'attribute' => '',
- 'another' => ''
- ), $atts ) );
- return '<div class="shortcode_wrapper">
- <h2>'.$attribute.'</h2>
- '.$another.'
- </div>';
- }
- add_shortcode('shortcode_name', 'shortcode_with_attributes');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement