Admin dashboard widget, namespace EOS, remove unused widgets
This commit is contained in:
7
admin/hooks/current-screen.php
Normal file
7
admin/hooks/current-screen.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
function sportspress_current_screen() {
|
||||
$screen = get_current_screen();
|
||||
if ( $screen->id == 'dashboard' )
|
||||
include_once( dirname( SPORTSPRESS_PLUGIN_FILE ) . '/admin/tools/dashboard.php' );
|
||||
}
|
||||
add_action( 'current_screen', 'sportspress_current_screen' );
|
||||
Reference in New Issue
Block a user