Testing Suspended

Testing of this plugin has been temporarily suspended due to an error. It will automatically resume when a new plugin version is released.

How to Hide the "PageNavi" Admin Menu

function plt_hide_wp_pagenavi_menus() {
	//Hide the "Settings → PageNavi" menu.
	remove_submenu_page('options-general.php', 'pagenavi');
}

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

Where do I put this code?