Skip to content

Instantly share code, notes, and snippets.

@lunule
Created January 25, 2025 23:08
Show Gist options
  • Save lunule/91707852c3b13f1e8dc3863fe7e61638 to your computer and use it in GitHub Desktop.
Save lunule/91707852c3b13f1e8dc3863fe7e61638 to your computer and use it in GitHub Desktop.
[WordPress - Remove 'Patterns' from the Appearance Submenu] #fse #gutenberg #wp #patterns #appearance
<?php
/**
* Remove "Patterns" menu item from the "Appearance" submenu
*/
add_action('admin_menu', function() {
remove_submenu_page('themes.php', 'site-editor.php?path=/patterns');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment