Tips on Customizing Sticky Menu, Sticky Header (or anything!) on Scroll

How to Hide the "Sticky Menu (or Anything!)" Admin Menu

function plt_hide_sticky_menu_or_anything_on_scroll_menus() {
	//Hide the "Settings → Sticky Menu (or Anything!)" menu.
	remove_submenu_page('options-general.php', 'stickyanythingmenu');
}

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

Where do I put this code?

How to Hide the "Get a WP 301 Redirects PRO license for FREE $158" Dashboard Widget

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

	//Remove the "Get a WP 301 Redirects PRO license for FREE $158" widget.
	remove_meta_box('wp301promo_widget', 'dashboard', 'side');
}

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