PluginProbe ʕ •ᴥ•ʔ
Hostinger Reach – AI-Powered Email Marketing for WordPress / trunk
Hostinger Reach – AI-Powered Email Marketing for WordPress vtrunk
1.7.2 1.7.1 1.7.0 1.6.0 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6
hostinger-reach / src / Admin / Redirects.php
hostinger-reach / src / Admin Last commit date
Database 9 months ago Notices 5 months ago Surveys 9 months ago Menus.php 3 months ago Redirects.php 1 year ago
Redirects.php
34 lines
1 <?php
2
3 namespace Hostinger\Reach\Admin;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 die;
7 }
8
9 class Redirects {
10 private string $platform;
11
12 public function init(): void {
13 if ( ! isset( $_GET['platform'] ) ) {
14 return;
15 }
16
17 $this->platform = sanitize_text_field( $_GET['platform'] );
18 $this->login_redirect();
19 }
20
21 public function login_redirect(): void {
22 if ( $this->platform === HOSTINGER_REACH_PLUGIN_SLUG ) {
23 add_action(
24 'init',
25 static function (): void {
26 $redirect_url = admin_url( 'admin.php?page=hostinger-reach' );
27 wp_safe_redirect( $redirect_url );
28 exit;
29 }
30 );
31 }
32 }
33 }
34