Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
vendor /
wp-cli /
language-command /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
WP_CLI
[ DIR ]
drwxr-xr-x
Core_Language_Command.php
11.3
KB
-rw-r--r--
Language_Namespace.php
1.69
KB
-rw-r--r--
Plugin_Language_Command.php
17.93
KB
-rw-r--r--
Site_Switch_Language_Command.p...
898
B
-rw-r--r--
Theme_Language_Command.php
17.65
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Site_Switch_Language_Command.php
<?php class Site_Switch_Language_Command extends WP_CLI\CommandWithTranslation { protected $obj_type = 'core'; /** * Activates a given language. * * ## OPTIONS * * <language> * : Language code to activate. * * ## EXAMPLES * * $ wp site switch-language ja * Success: Language activated. * * @throws WP_CLI\ExitException */ public function __invoke( $args, $assoc_args ) { list( $language_code ) = $args; $available = $this->get_installed_languages(); if ( ! in_array( $language_code, $available, true ) ) { WP_CLI::error( 'Language not installed.' ); } if ( 'en_US' === $language_code ) { $language_code = ''; } if ( get_locale() === $language_code ) { WP_CLI::warning( "Language '{$language_code}' already active." ); return; } update_option( 'WPLANG', $language_code ); WP_CLI::success( 'Language activated.' ); } }
Close