| Server IP : 146.190.157.162 / Your IP : 216.73.217.6 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/pesak/wp-content/plugins/polylang/integrations/ |
Upload File : |
<?php
/**
* @package Polylang
*/
/**
* Container for 3rd party plugins ( and themes ) integrations.
* This class is available as soon as the plugin is loaded.
*
* @since 1.0
* @since 2.8 Renamed from PLL_Plugins_Compat to PLL_Integrations.
*/
#[AllowDynamicProperties]
class PLL_Integrations {
/**
* Singleton instance.
*
* @var PLL_Integrations|null
*/
protected static $instance = null;
/**
* Constructor.
*
* @since 1.0
*/
protected function __construct() {}
/**
* Returns the single instance of the class.
*
* @since 1.7
*
* @return self
*/
public static function instance(): self {
if ( null === self::$instance ) {
self::$instance = new self();
self::$instance->init();
}
return self::$instance;
}
/**
* Requires integrations.
*
* @since 3.7
*
* @return void
*/
protected function init(): void {
// Loads external integrations.
foreach ( glob( __DIR__ . '/*/load.php', GLOB_NOSORT ) as $load_script ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
require_once $load_script; // phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingVariable
}
}
}
class_alias( 'PLL_Integrations', 'PLL_Plugins_Compat' ); // For Backward compatibility.