| Server IP : 81.2.241.106 / Your IP : 216.73.216.165 Web Server : Apache/2.4.67 (Debian) System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : lisky ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/lisky/wp-content/plugins/weglot/src/third/underconstructionpage/ |
Upload File : |
<?php
namespace WeglotWP\Third\UnderConstructionPage;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use WeglotWP\Helpers\Helper_Is_Admin;
use WeglotWP\Models\Hooks_Interface_Weglot;
/**
* UCP_Tracking
*
* @since 3.1.1
*/
class UCP_Tracking implements Hooks_Interface_Weglot {
/**
* @var Ucp_Active
*/
private $ucp_active_services;
/**
* @since 3.1.1
* @return void
*/
public function __construct() {
$this->ucp_active_services = weglot_get_service( Ucp_Active::class );
}
/**
* @since 3.1.1
* @see Hooks_Interface_Weglot
* @return void
*/
public function hooks() {
if ( ! Helper_Is_Admin::is_wp_admin() ) {
return;
}
if ( ! $this->ucp_active_services->is_active() ) {
return;
}
add_filter( 'weglot_tabs_admin_options_available', array( $this, 'weglot_ucp_tracking' ) );
}
/**
* @param array<string,mixed>$options_available
* @return array<string,mixed>
* @since 3.1.1
*/
public function weglot_ucp_tracking( $options_available ) {
if ( isset( $options_available['api_key_private']['description'] ) ) {
$register_link = 'https://dashboard.weglot.com/register-wordpress';
$register_link_tracked = 'https://dashboard.weglot.com/register-wordpress?fpr=ucp';
$options_available['api_key_private']['description'] = \str_replace( $register_link, $register_link_tracked, $options_available['api_key_private']['description'] );
}
return $options_available;
}
}