function plt_hide_gutenberg_custom_fields_menus() { //Hide the "GCF" menu. remove_menu_page('gcf'); } add_action('admin_menu', 'plt_hide_gutenberg_custom_fields_menus', 11);
Where do I put this code?