// Add a custom query variable add_filter( 'rest_query_vars', function ( $valid_vars ) { $valid_vars[] = 'custom_after'; return $valid_vars; } ); // Modify the query if the custom query variable is set add_action( 'pre_get_posts', function ( $query ) { if ( isset( $query->query_vars['custom_after'] ) ) { $date_string = $query->query_vars['custom_after']; $date = date( 'Y-m-d H:i:s', strtotime( $date_string ) ); $query->set( 'date_query', array( 'after' => $date, 'inclusive' => true, ) ); } }, 10, 1 ); // Ensure our custom query variable is exposed to the API add_filter( 'rest_post_query', function ( $args, $request ) { if ( ! empty( $request['custom_after'] ) ) { $args['custom_after'] = $request['custom_after']; } return $args; }, 10, 2 );
BVB News

Erneute Verletzung: Raphael Guerreiro verpasst den Bundesliga-Auftakt

Raphael Guerreiro
Foto: Jose Breton- Pics Action / Shutterstock.com

Bittere Nachrichten für den BVB und allen voran für Raphael Guerreiro. Der 25-jährige Portugiese hat sich im Training eine Muskelverletzung zugezogen und fällt mindestens zwei Wochen aus. Damit wird Guerreiro auch den Bundesliga-Auftakt kommende Woche gegen den FC Augsburg verpassen.



Abonnieren
Benachrichtige mich bei
guest
0 Comments
Inline Feedbacks
View all comments