Created
January 25, 2025 23:08
-
-
Save lunule/91707852c3b13f1e8dc3863fe7e61638 to your computer and use it in GitHub Desktop.
[WordPress - Remove 'Patterns' from the Appearance Submenu] #fse #gutenberg #wp #patterns #appearance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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