Last active
January 12, 2018 10:27
-
-
Save robertdevore/e87066ff2b813dcde1ff45ab160e4d9a to your computer and use it in GitHub Desktop.
Removes the "Storefront" link from under the Appearance tab in your dashboard
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 | |
| /** | |
| * Removes Storefront's Welcome page | |
| */ | |
| if ( ! class_exists( 'Storefront_Admin' ) ) : | |
| class Storefront_Admin { | |
| public function __construct() { | |
| remove_action( 'admin_menu', 'welcome_register_menu', 1 ); | |
| } | |
| } | |
| endif; | |
| return new Storefront_Admin(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment