ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/www/site BKP/wp-content/plugins/wpml-string-translation/classes/db-mappers
/
home
mhhtmff
www
site BKP
wp-content
plugins
wpml-string-translation
classes
db-mappers
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
class-wpml-st-bulk-strings-insert.php
2.63 MB
chmod
View
DL
Edit
Rename
Delete
class-wpml-st-bulk-update-strings-status.php
7.41 MB
chmod
View
DL
Edit
Rename
Delete
class-wpml-st-db-mappers-string-positions.php
1.86 MB
chmod
View
DL
Edit
Rename
Delete
class-wpml-st-db-mappers-strings.php
1.21 MB
chmod
View
DL
Edit
Rename
Delete
class-wpml-st-models-string-translation.php
1.07 MB
chmod
View
DL
Edit
Rename
Delete
class-wpml-st-models-string.php
1.55 MB
chmod
View
DL
Edit
Rename
Delete
DomainsRepository.php
615 B
chmod
View
DL
Edit
Rename
Delete
Hooks.php
591 B
chmod
View
DL
Edit
Rename
Delete
StringsRetrieve.php
2.44 MB
chmod
View
DL
Edit
Rename
Delete
StringTranslations.php
684 B
chmod
View
DL
Edit
Rename
Delete
Update.php
1.09 MB
chmod
View
DL
Edit
Rename
Delete
wpml-st-word-count-package-records.php
3.43 MB
chmod
View
DL
Edit
Rename
Delete
wpml-st-word-count-string-records.php
2.86 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/www/site BKP/wp-content/plugins/wpml-string-translation/classes/db-mappers/Update.php
<?php namespace WPML\ST\DB\Mappers; class Update { /** * @param callable $getStringById * @param int $stringId * @param string $domain * * @return bool */ public static function moveStringToDomain( callable $getStringById, $stringId, $domain ) { global $wpdb; $string = $getStringById( $stringId ); if ( $string ) { $wpdb->update( $wpdb->prefix . 'icl_strings', [ 'context' => $domain ], [ 'id' => $stringId ] ); self::regenerateMOFiles( $string->context, $domain ); return true; } return false; } /** * @param string $oldDomain * @param string $newDomain */ public static function moveAllStringsToNewDomain( $oldDomain, $newDomain ) { global $wpdb; $affected = (int) $wpdb->update( $wpdb->prefix . 'icl_strings', [ 'context' => $newDomain ], [ 'context' => $oldDomain ] ); if ( $affected ) { self::regenerateMOFiles( $oldDomain, $newDomain ); } } private static function regenerateMOFiles( $oldDomain, $newDomain ) { do_action( 'wpml_st_refresh_domain', $oldDomain ); do_action( 'wpml_st_refresh_domain', $newDomain ); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply