BS – Icon
Bootstrap Glyphicons. Simply put the name with the name= element.
// Add Shortcode function icon_shortcode( $atts ) { // Attributes extract( shortcode_atts( array( 'name' => '', ), $atts ) ); // Code return '<span class="glyphicon glyphicon-star ' . $name . '"></span>'; } add_shortcode( 'icon', 'icon_shortcode' );