Tips on Customizing WP EasyPay – Create Your Payment Forms to Pay with Square – Square for WordPress Plugin: Integrate Square with WordPress to Collect Payments

How to Hide WP EASY PAY Admin Menus

function plt_hide_wp_easy_pay_menus() {
	//Hide "WP EASY PAY".
	remove_menu_page('edit.php?post_type=wp_easy_pay');
	//Hide "WP EASY PAY → All Forms".
	remove_submenu_page('edit.php?post_type=wp_easy_pay', 'edit.php?post_type=wp_easy_pay');
	//Hide "WP EASY PAY → Create Payment Form".
	remove_submenu_page('edit.php?post_type=wp_easy_pay', 'post-new.php?post_type=wp_easy_pay');
	//Hide "WP EASY PAY → Reports".
	remove_submenu_page('edit.php?post_type=wp_easy_pay', 'edit.php?post_type=wpep_reports');
	//Hide "WP EASY PAY → Square Connect".
	remove_submenu_page('edit.php?post_type=wp_easy_pay', 'wpep-settings');
	//Hide "WP EASY PAY → Get Pro".
	remove_submenu_page('edit.php?post_type=wp_easy_pay', 'get_pro_menu');
}

add_action('admin_menu', 'plt_hide_wp_easy_pay_menus', 1000000000);

Where do I put this code?

How to Hide WP EASY PAY Meta Boxes

function plt_hide_wp_easy_pay_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Build Reports" meta box.
	remove_meta_box('wporg_box_id', $screen->id, 'advanced');
	//Hide the "Change Currency Symbol" meta box.
	remove_meta_box('wpep_form_currency_show_type_metabox', $screen->id, 'side');
	//Hide the "Shortcode" meta box.
	remove_meta_box('wpep_form_shortcode_metabox', $screen->id, 'side');
	//Hide the "Form Style" meta box.
	remove_meta_box('wpep_form_style_box', $screen->id, 'side');
}

add_action('add_meta_boxes', 'plt_hide_wp_easy_pay_metaboxes', 20);