BS – Button
Insert a button and specify the label, color (brand), url, and size.
// Add Shortcode function button_shortcode( $atts ) { // Attributes extract( shortcode_atts( array( 'label' => '', 'color' => '', 'size' => '', ), $atts ) ); // Code return '<button type="button" class="btn btn-' . $color . ' btn-' . $size . '">' . $label . '</button>'; } add_shortcode( 'button', 'button_shortcode' );