Tips on Customizing Gutenberg Template Library & Redux Framework

How to Hide the "Redux" Admin Menu

function plt_hide_redux_framework_menus() {
	//Hide the "Settings → Redux" menu.
	remove_submenu_page('options-general.php', 'redux-framework');
}

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

Where do I put this code?

How to Hide the "Post Attributes" Meta Box

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

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

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