__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Timber\Integrations;
class WPML {
public function __construct() {
add_filter('timber/URLHelper/file_system_to_url', array($this, 'file_system_to_url'), 10, 1);
add_filter('timber/URLHelper/get_content_subdir/home_url', array($this, 'file_system_to_url'), 10, 1);
add_filter('timber/URLHelper/url_to_file_system/path', array($this, 'file_system_to_url'), 10, 1);
add_filter('timber/ImageHelper/_get_file_url/home_url', array($this, 'file_system_to_url'), 10, 1);
}
public function file_system_to_url($url) {
if ( defined('ICL_LANGUAGE_CODE') ) {
$url = preg_replace('/(?<!:\/)\/' . ICL_LANGUAGE_CODE . '/', '', $url);
}
return $url;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ACF.php | File | 2.21 KB | 0775 |
|
| CoAuthorsPlus.php | File | 1.41 KB | 0775 |
|
| CoAuthorsPlusUser.php | File | 1.07 KB | 0775 |
|
| Command.php | File | 880 B | 0775 |
|
| Timber_WP_CLI_Command.php | File | 910 B | 0775 |
|
| WPML.php | File | 679 B | 0775 |
|