Add positions to statistics and metrics
This commit is contained in:
17
admin/templates/event-staff.php
Normal file
17
admin/templates/event-staff.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
if ( !function_exists( 'sportspress_event_staff' ) ) {
|
||||
function sportspress_event_staff( $id = null ) {
|
||||
|
||||
if ( ! $id ):
|
||||
global $post;
|
||||
$id = $post->ID;
|
||||
endif;
|
||||
|
||||
$staff = (array)get_post_meta( $id, 'sp_staff', false );
|
||||
|
||||
$output = '';
|
||||
|
||||
return apply_filters( 'sportspress_event_staff', $output );
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user