Skip to content

Instantly share code, notes, and snippets.

@aaronsummers
Last active April 3, 2019 10:00
Show Gist options
  • Save aaronsummers/963b395a7f0f657b2d455da1e22fe9db to your computer and use it in GitHub Desktop.
Save aaronsummers/963b395a7f0f657b2d455da1e22fe9db to your computer and use it in GitHub Desktop.
Hide WordPress core files from Sublime editor

project_name.sublime-project

Add the folders and files to your sublime-project file to exclude them from the sidebar.

{
 "folders": [
	{
	 "folder_exclude_patterns": [
		"wp-includes",
		"wp-admin",
		"wp-content/plugins",
		"wp-content/uploads",
		"wp-content/languages",
		"wp-content/upgrade",
		"wp-content/wflogs",
		"wp-content/ai1wm-backups",
		"node_modules",
		"wp-content/w3tc-config", // W3 total cache
		"wp-content/cache", // W3 total cache
	 ],
	 
	 "path": "/your/project/path/here", // Add your project path
	 
	 "file_exclude_patterns": [
		"wp-config-sample.php",
		"wp-app.php",
		"wp-blog-header.php",
		"wp-activate.php",
		"wp-comments-post.php",
		"wp-cron.php",
		"wp-links-opml.php",
		"wp-load.php",
		"wp-login.php",
		"wp-mail.php",
		"wp-pass.php",
		"wp-register.php",
		"wp-settings.php",
		"wp-signup.php",
		"wp-trackback.php",
		"xmlrpc.php",
		"license.txt",
		"readme.html"
	 ]
	}
 ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment