Tips on Customizing WP-Members Membership Plugin

How to Hide the "WP-Members" Admin Menu

function plt_hide_wp_members_menus() {
	//Hide the "Settings → WP-Members" menu.
	remove_submenu_page('options-general.php', 'wpmem-settings');
}

add_action('admin_menu', 'plt_hide_wp_members_menus', 11);

Where do I put this code?

How to Hide the "Post Restriction" Meta Box

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

	//Hide the "Post Restriction" meta box.
	remove_meta_box('wpmem-block-meta-id', $screen->id, 'side');
}

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

How to Hide the "Latest from ButlerBlog" Dashboard Widget

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

	//Remove the "Latest from ButlerBlog" widget.
	remove_meta_box('dashboard_custom_feed', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_wp_members_dashboard_widgets', 20);