Tips on Customizing SimplyRETS Real Estate IDX

How to Hide SimplyRETS Real Estate IDX Admin Menus

function plt_hide_simply_rets_menus() {
	//Hide "Settings → SimplyRETS".
	remove_submenu_page('options-general.php', 'simplyrets-admin.php');

	//Hide "SimplyRETS".
	remove_menu_page('edit.php?post_type=sr-listings');
	//Hide "SimplyRETS → All SimplyRETS Pages".
	remove_submenu_page('edit.php?post_type=sr-listings', 'edit.php?post_type=sr-listings');
	//Hide "SimplyRETS → New SimplyRETS Page".
	remove_submenu_page('edit.php?post_type=sr-listings', 'post-new.php?post_type=sr-listings');
}

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

Where do I put this code?

How to Hide SimplyRETS Real Estate IDX Meta Boxes

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

	//Hide the "Filter Results on This Page" meta box.
	remove_meta_box('sr-meta-box-filter', $screen->id, 'normal');
	//Hide the "Page Template" meta box.
	remove_meta_box('sr-template-meta-box', $screen->id, 'side');
}

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