Skip to content

Instantly share code, notes, and snippets.

@mindctrl
Created September 5, 2024 01:18
Show Gist options
  • Save mindctrl/006b9d8e1bd96bb39c77eb0e32a0cfa3 to your computer and use it in GitHub Desktop.
Save mindctrl/006b9d8e1bd96bb39c77eb0e32a0cfa3 to your computer and use it in GitHub Desktop.
Remove WPForms admin menu spam
<?php
add_action( 'admin_menu', function() {
remove_submenu_page( 'wpforms-overview', 'wpforms-analytics' );
remove_submenu_page( 'wpforms-overview', 'wpforms-smtp' );
remove_submenu_page( 'wpforms-overview', 'wpforms-about' );
remove_submenu_page( 'wpforms-overview', 'wpforms-community' );
}, 100 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment