Enable live countdown in admin dashboard
This commit is contained in:
@@ -115,10 +115,6 @@ class SP_Admin_Assets {
|
|||||||
wp_localize_script( 'sportspress-admin', 'localized_strings', $params );
|
wp_localize_script( 'sportspress-admin', 'localized_strings', $params );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( in_array( $screen->id, array( 'dashboard' ) ) ) {
|
|
||||||
//wp_enqueue_style( 'sportspress-admin-dashboard' );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( in_array( $screen->id, array( 'widgets' ) ) ) {
|
if ( in_array( $screen->id, array( 'widgets' ) ) ) {
|
||||||
wp_enqueue_script( 'sportspress-admin-widgets' );
|
wp_enqueue_script( 'sportspress-admin-widgets' );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||||||
*/
|
*/
|
||||||
function sp_get_screen_ids() {
|
function sp_get_screen_ids() {
|
||||||
return apply_filters( 'sportspress_screen_ids', array(
|
return apply_filters( 'sportspress_screen_ids', array(
|
||||||
|
'dashboard',
|
||||||
'dashboard_page_sp-about',
|
'dashboard_page_sp-about',
|
||||||
'toplevel_page_sportspress',
|
'toplevel_page_sportspress',
|
||||||
'sportspress_page_sp-status',
|
'sportspress_page_sp-status',
|
||||||
|
|||||||
Reference in New Issue
Block a user