Last active
March 18, 2019 16:16
-
-
Save davidsword/56f727854662dad2ebdc3d29148833cc to your computer and use it in GitHub Desktop.
WordPress - https://github.com/davidsword/sword-toolkit plugin sample configuration
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 | |
/** | |
* Sword Toolkit configuration | |
* | |
* @see https://github.com/davidsword/sword-toolkit | |
*/ | |
add_filter('sword_toolkit', function() { | |
return [ | |
'remove_blog' => true, | |
'remove_post_tags' => true, | |
'remove_admin_bar' => true, | |
'remove_search' => true, | |
'remove_jquery_migrate' => true, | |
'remove_wp_head_junk' => true, | |
'remove_rest_api' => true, | |
'remove_emojis' => true, | |
'redirect_if_attachment' => true, | |
'remove_menu_pages' => [ | |
'plugins.php', | |
'widgets.php' | |
// etc | |
], | |
'remove_menu_sub_pages' => [ | |
'index.php' => 'my-sites.php', | |
'options-general.php' => 'options-discussion.php', | |
'tools.php' => 'tools.php' | |
// etc | |
], | |
]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment