Hello I’m very new to php however I’m attempting to study. Hope the query is alright to ask.
I do not know whether it is even attainable or if I ought to use one other method to get my consequence. However I wish to know what I am doing mistaken in the case of season, what I am attempting to get is all IDs between 1 and 1000 on seasons besides 62 and 269 i this case.
Im attempt to work with apply_filters however can I solely add 1 worth? Or ought to I take advantage of one other technique to get what I need?
$sasong = array_filter(vary(1,1000), operate($merchandise) { return $merchandise !== 62 && $merchandise !== 269; } );
$format = get_option( 'sportspress_team_events_format', 'blocks' );
if ( 'calendar' === $format ) {
sp_get_template( 'event-calendar.php', array( 'crew' => $id ) );
} elseif ( 'checklist' === $format ) {
$args = array(
'crew' => $id,
'league' => apply_filters( 'sp_team_events_league', 0 ),
'season' => apply_filters( 'sp_team_events_season', $sasong ),
'title_format' => 'homeaway',
'time_format' => 'separate',
'columns' => array( 'occasion', 'time', 'outcomes' ),
'order' => 'DESC',
);
$args = apply_filters( 'sp_team_events_list_args', $args );
sp_get_template( 'event-list.php', $args );
} else {
sp_get_template( 'event-fixtures-results.php', array( 'crew' => $id ) );
}
Thanks for the assistance upfront!