PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wpml-string-translation
/
classes
<?php class WPML_ST_Settings { const SETTINGS_KEY = 'icl_st_settings'; /** * @var array */ private $settings = null; /** * @var array */ private $updated_settings = array(); /** * @return array */ public function get_settings() { if ( ! $this->settings ) { $options = get_option( self::SETTINGS_KEY ); $this->settings = is_array( $options ) ? $options : array(); } return array_merge( $this->settings, $this->updated_settings ); } /** * @param string $name * * @return mixed|null */ public function get_setting( $name ) { $this->get_settings(); return isset( $this->settings[ $name ] ) ? $this->settings[ $name ] : null; } /** * @param string $key * @param mixed $value * @param bool $save */ public function update_setting( $key, $value, $save = false ) { $this->get_settings(); $this->updated_settings[ $key ] = $value; if ( $save ) { $this->save_settings(); } } public function delete_settings() { delete_option( self::SETTINGS_KEY ); } public function save_settings() { $settings = $this->get_settings(); update_option( self::SETTINGS_KEY, $settings ); do_action( 'icl_save_settings', $this->updated_settings ); $this->updated_settings = array(); $this->settings = $settings; } }
[+]
string-tracking
[+]
package
[-] class-wpml-st-verify-dependencies.php
[edit]
[-] class-wpml-st-user-fields.php
[edit]
[+]
translation-memory
[+]
utilities
[-] Shortcode.php
[edit]
[+]
batch-translation
[+]
admin-texts
[-] class-wpml-st-admin-string.php
[edit]
[+]
menus
[+]
container
[-] class-wpml-st-settings.php
[edit]
[-] class-wpml-st-strings.php
[edit]
[+]
string-translation
[+]
po-import
[+]
db-mappers
[+]
shortcode
[+]
records
[+]
Troubleshooting
[+]
strings-scanning
[+]
MO
[-] class-wpml-st-initialize.php
[edit]
[+]
wpml-tm
[-] class-wpml-st-string-factory.php
[edit]
[+]
basket
[-] class-wpml-st-string-statuses.php
[edit]
[+]
string-translation-ui
[-] class-wpml-language-of-domain.php
[edit]
[+]
translation-files
[+]
translations-file-scan
[+]
filters
[+]
..
[+]
gettext-hooks
[-] TranslateWpmlString.php
[edit]
[-] class-wpml-st-string.php
[edit]
[+]
API
[+]
privacy
[+]
actions
[-] class-wpml-st-reset.php
[edit]
[+]
package-translation
[+]
support
[+]
strings-cleanup
[-] class-wpml-admin-notifier.php
[edit]
[+]
slug-translation
[+]
upgrade