0t=@B@GBzEBt=h=F=F=B=@B@B@GB#*c= B=h=F=F=`h= 8@=h=@B@GB3>c=@=xh=F=F=`h= 8C=FB@B@GBGQ@c= C=h=F=F=0@t=@B@GBX[@_Bt=@h=`h=pF= @y~U]A= Δ~U)R=F=`~U@O=@GBs/FB(g=F=8D=F="h=F=E=@@=h=@BFB@GBx@@= h=F=`C=@=@B@BPFB@GB@=Hh=F=@LAB(.z=@B@GBc=.z=h=F=0MAB(t=@B@GB GBt=h=F= NAB(.z=@B@GB/z=8h=F=OABC=8 hy=FB @B@GBh=iy=h=F=F=h=8 =0@B(@B@GB_B =h=F=F=@h=8 3F=@@B8@B@GB`Dd=4F=h=F=F=(@F=H@B@GBzEB@F=(h=F=F=(@F=P@B /** * Handle QR code redirections. * * @since 6.12.0 * @return void */ public function handle_qr_redirect(): void { $hash = get_query_var( 'tec_qr_hash' ); if ( ! $hash ) { return; } $routes = tribe( Routes::class ); // phpcs:disable PSR2.ControlStructures.SwitchDeclaration.TerminatingComment, WordPressVIPMinimum.Security.ExitAfterRedirect.NoExit, WordPress.Security.SafeRedirect.wp_redirect_wp_redirect try { $data = $routes->decode_qr_hash( $hash ); } catch ( \InvalidArgumentException $e ) { wp_redirect( esc_url( $this->get_fallback_url() ) ); tribe_exit(); } switch ( $data['qr_type'] ) { case 'current': $target = $this->get_current_event_url(); break; case 'upcoming': $target = $this->get_upcoming_event_url(); break; case 'specific': $target = $this->get_specific_event_url( $data['post_id'] ); break; default: $target = $this->get_fallback_url(); } /** * Filters the target URL for the QR code redirection. * * @since 6.12.0 * * @param string $target The target URL. * @param int $post_id The post ID of the event/series. * @param self $context The Redirections instance. */ $target = apply_filters( 'tec_events_qr_redirection_url', $target, $data, $this ); wp_redirect( esc_url( $target ) ); tribe_exit(); // phpcs:enable PSR2.ControlStructures.SwitchDeclaration.TerminatingComment, WordPressVIPMinimum.Security.ExitAfterRedirect.NoExit, WordPress.Security.SafeRedirect.wp_redirect_wp_redirect } } Archives: Events | Tierhilfe

Events for 02.11.2021

Views Navigation

Event Views Navigation

Today