Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/sitepress-multilingual-cms/compatibility/GoogleSiteKit/Hooks.php
Назад
<?php namespace WPML\Compatibility\GoogleSiteKit; use function WPML\Container\make; class Hooks implements \IWPML_Backend_Action { public function add_hooks() { add_filter( 'googlesitekit_canonical_home_url', [ $this, 'getCanonicalHomeUrl' ] ); } /** * @return string */ public function getCanonicalHomeUrl() { $wpml_url_filters = make( \WPML_URL_Filters::class ); $wpml_url_filters->remove_global_hooks(); $unfilteredHomeUrl = home_url(); $wpml_url_filters->add_global_hooks(); return $unfilteredHomeUrl; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка