HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/coolswim/wp-content/plugins/wpml-string-translation/classes/db-mappers/Hooks.php
<?php

namespace WPML\ST\DB\Mappers;

use function WPML\Container\make;
use function WPML\FP\partial;

class Hooks implements \IWPML_Action, \IWPML_Backend_Action, \IWPML_Frontend_Action {
	public function add_hooks() {
		$getStringById      = [ make( \WPML_ST_DB_Mappers_Strings::class ), 'getById' ];
		$moveStringToDomain = partial( [ Update::class, 'moveStringToDomain' ], $getStringById );
		add_action( 'wpml_st_move_string_to_domain', $moveStringToDomain, 10, 2 );

		add_action( 'wpml_st_move_all_strings_to_new_domain', [ Update::class, 'moveAllStringsToNewDomain' ], 10, 2 );
	}
}