-
Home
-
Contact Form Plugin by Fluent Forms for Quiz, Survey, and Drag & Drop WP Form Builder
- Tips
How to Hide Fluent Forms Admin Menus
function plt_hide_fluentform_menus() {
//Hide "Tools → Scheduled Actions".
remove_submenu_page('tools.php', 'action-scheduler');
//Hide "Fluent Forms".
remove_menu_page('fluent_forms');
//Hide "Fluent Forms → Forms".
remove_submenu_page('fluent_forms', 'fluent_forms');
//Hide "Fluent Forms → New Form".
remove_submenu_page('fluent_forms', 'fluent_forms#add=1');
//Hide "Fluent Forms → Entries".
remove_submenu_page('fluent_forms', 'fluent_forms_all_entries');
//Hide "Fluent Forms → Global Settings".
remove_submenu_page('fluent_forms', 'fluent_forms_settings');
//Hide "Fluent Forms → Tools".
remove_submenu_page('fluent_forms', 'fluent_forms_transfer');
//Hide "Fluent Forms → SMTP".
remove_submenu_page('fluent_forms', 'fluent_forms_smtp');
//Hide "Fluent Forms → Integrations".
remove_submenu_page('fluent_forms', 'fluent_forms_add_ons');
//Hide "Fluent Forms → Support".
remove_submenu_page('fluent_forms', 'fluent_forms_docs');
}
add_action('admin_menu', 'plt_hide_fluentform_menus', 11);
Where do I put this code?
How to Hide the "Fluent Forms Latest Form Submissions" Dashboard Widget
function plt_hide_fluentform_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Fluent Forms Latest Form Submissions" widget.
remove_meta_box('fluentform_stat_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_fluentform_dashboard_widgets', 20);