Fix bugs, use plural post slugs, move actions and filters into hooks folder
This commit is contained in:
10
admin/hooks/admin-head.php
Normal file
10
admin/hooks/admin-head.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
function sportspress_admin_head() {
|
||||
global $typenow;
|
||||
|
||||
if ( in_array( $typenow, array( 'sp_result', 'sp_outcome', 'sp_column', 'sp_statistic' ) ) ):
|
||||
sportspress_highlight_admin_menu();
|
||||
endif;
|
||||
}
|
||||
add_action( 'admin_head-edit.php', 'sportspress_admin_head', 10, 2 );
|
||||
add_action( 'admin_head-post.php', 'sportspress_admin_head', 10, 2 );
|
||||
Reference in New Issue
Block a user