WPForms Documentation

Documentation, Reference Materials and Tutorials for WPForms

How to Remove TinyMCE “Add Form” Button in WPForms

In some cases, you may want to hide the Add Form button in your TinyMCE post editor. In this guide, we will show you how to remove the TinyMCE “Add Form” button in WPForms.

Add Form Button

The visual editor “Add Form” button can be removed. Simply add the snippet below in your theme’s functions.php file or in a site-specific plugin.

 * Remove the WPForms TinyMCE media button.
 * In the function below we disable displaying the media button
 * on pages. You can replace 'page' with your desired post type.
 * @param boolean $display
 * @return boolean
function wpf_remove_media_button( $display ) {

	$screen = get_current_screen();

	if ( 'page' == $screen->post_type ) {
		return false;

	return $display;
add_filter( 'wpforms_display_media_button', 'wpf_remove_media_button' );