Admin dashboard widget, namespace EOS, remove unused widgets

This commit is contained in:
Brian Miyaji
2014-02-22 12:25:27 +11:00
parent 9b35725bba
commit 9f46acc6b5
16 changed files with 271 additions and 316 deletions

View 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' );