| Server IP : 185.68.16.147 / Your IP : 216.73.216.209 Web Server : Apache System : Linux web789.default-host.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : jt292766 ( 1182) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/jt292766/konstruktbud.com.ua/www/wp-content/plugins/polylang/src/modules/REST/ |
Upload File : |
<?php
/**
* @package Polylang
*/
namespace WP_Syntex\Polylang\REST;
use PLL_Model;
defined( 'ABSPATH' ) || exit;
/**
* Sets all Polylang REST controllers up.
*
* @since 3.7
*/
class API {
/**
* REST languages.
*
* @var V1\Languages|null
*/
public $languages;
/**
* REST settings.
*
* @var V1\Settings|null
*/
public $settings;
/**
* @var PLL_Model
*/
private $model;
/**
* Constructor.
*
* @since 3.7
*
* @param PLL_Model $model Polylang's model.
*/
public function __construct( PLL_Model $model ) {
$this->model = $model;
}
/**
* Adds hooks and registers endpoints.
*
* @since 3.7
*
* @return void
*/
public function init(): void {
$this->languages = new V1\Languages( $this->model );
$this->languages->register_routes();
$this->settings = new V1\Settings( $this->model );
$this->settings->register_routes();
}
}