Answers for "short code of button in visual composer"

1

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' );
Posted by: Guest on October-19-2020

Code answers related to "short code of button in visual composer"

Browse Popular Code Answers by Language