ALI
0
Q:

short code of button in visual composer

/**
 * Add the button
 */
function my_add_button( $editor_id ) {

	// Avoid getting added double where
	// it's supposed to be.
	if ( $editor_id == 'content' || $editor_id == 'themeblvd_editor' ) {
		return;
	}

	// Output button
	echo '<a href="#" class="tb-insert-shortcode button"><span class="tb-icon"></span> Add Shortcode</a>';

}
add_action( 'media_buttons', 'my_add_button' );
1

New to Communities?

Join the community