Move widget, templates, libraries and functions into includes directory
This commit is contained in:
14
includes/templates/event-staff.php
Normal file
14
includes/templates/event-staff.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
if ( !function_exists( 'sportspress_event_staff' ) ) {
|
||||
function sportspress_event_staff( $id = null ) {
|
||||
|
||||
if ( ! $id )
|
||||
$id = get_the_ID();
|
||||
$staff = (array)get_post_meta( $id, 'sp_staff', false );
|
||||
|
||||
$output = '';
|
||||
|
||||
return apply_filters( 'sportspress_event_staff', $output );
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user