-
Home
-
Happyforms – Form Builder for WordPress: Drag & Drop Contact Forms, Surveys, Payments & Multipurpose Forms
- Tips
How to Hide Happyforms (free) Admin Menus
function plt_hide_happyforms_menus() {
//Hide "Forms".
remove_menu_page('happyforms');
//Hide "Forms → All Forms".
remove_submenu_page('happyforms', 'edit.php?post_type=happyform');
//Hide "Forms → Add New".
remove_submenu_page('happyforms', 'customize.php?happyforms=1&form_id=0#build');
//Hide "Forms → SubmissionsUpgrade".
remove_submenu_page('happyforms', 'edit.php?post_type=happyforms-activity');
//Hide "Forms → CouponsUpgrade".
remove_submenu_page('happyforms', 'happyforms-coupons');
//Hide "Forms → IntegrationsUpgrade".
remove_submenu_page('happyforms', 'happyforms-integrations');
//Hide "Forms → Import".
remove_submenu_page('happyforms', 'happyforms-import');
//Hide "Forms → Export".
remove_submenu_page('happyforms', 'happyforms-export');
//Hide "Forms → SettingsUpgrade".
remove_submenu_page('happyforms', '#settings');
}
add_action('admin_menu', 'plt_hide_happyforms_menus', 11);
Where do I put this code?
How to Hide Happyforms (free) Meta Boxes
function plt_hide_happyforms_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "ActiveCampaign" meta box.
remove_meta_box('happyforms-integrations-widget-active-campaign', $screen->id, 'normal');
//Hide the "AWeber" meta box.
remove_meta_box('happyforms-integrations-widget-aweber', $screen->id, 'normal');
//Hide the "Constant Contact" meta box.
remove_meta_box('happyforms-integrations-widget-constant-contact', $screen->id, 'normal');
//Hide the "ConvertKit" meta box.
remove_meta_box('happyforms-integrations-widget-convertkit', $screen->id, 'normal');
//Hide the "Mailchimp" meta box.
remove_meta_box('happyforms-integrations-widget-mailchimp', $screen->id, 'normal');
//Hide the "MailerLite" meta box.
remove_meta_box('happyforms-integrations-widget-mailerlite', $screen->id, 'normal');
//Hide the "SendFox" meta box.
remove_meta_box('happyforms-integrations-widget-sendfox', $screen->id, 'normal');
//Hide the "SendGrid" meta box.
remove_meta_box('happyforms-integrations-widget-sendgrid', $screen->id, 'normal');
//Hide the "Sendinblue" meta box.
remove_meta_box('happyforms-integrations-widget-sendinblue', $screen->id, 'normal');
//Hide the "EmailOctopus" meta box.
remove_meta_box('happyforms-integrations-widget-emailoctopus', $screen->id, 'normal');
//Hide the "Drip" meta box.
remove_meta_box('happyforms-integrations-widget-drip', $screen->id, 'normal');
//Hide the "reCAPTCHA" meta box.
remove_meta_box('happyforms-integrations-widget-recaptcha', $screen->id, 'side');
//Hide the "Stripe" meta box.
remove_meta_box('happyforms-integrations-widget-stripe', $screen->id, 'side');
//Hide the "PayPal" meta box.
remove_meta_box('happyforms-integrations-widget-paypal', $screen->id, 'side');
//Hide the "Zapier" meta box.
remove_meta_box('happyforms-integrations-widget-zapier', $screen->id, 'column3');
//Hide the "Integromat" meta box.
remove_meta_box('happyforms-integrations-widget-integromat', $screen->id, 'column3');
//Hide the "Integrately" meta box.
remove_meta_box('happyforms-integrations-widget-integrately', $screen->id, 'column3');
//Hide the "Google Analytics" meta box.
remove_meta_box('happyforms-integrations-widget-google-analytics', $screen->id, 'column4');
}
add_action('add_meta_boxes', 'plt_hide_happyforms_metaboxes', 20);