MainWP Community

Disable the add form button in the classic editor in WPForms

Disable the add form button in the classic editor in WPForms on your child site.

Snippet Type

Execute on Child Sites

Snippet

function wpf_dev_remove_media_button( $display ) {
 
    $screen = get_current_screen();
 
    if ( 'page' == $screen->post_type || 'post' == $screen->post_type ) {
        return false;
 
    } 
    return $display;
}
add_filter( 'wpforms_display_media_button', 'wpf_dev_remove_media_button' );
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.