PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
/
ATE
/
Hooks
<?php namespace WPML\TM\ATE\Hooks; use WPML\TM\ATE\ReturnedJobsQueue; class ReturnedJobActions implements \IWPML_Action { /** @var callable :: int->string->void */ private $addToQueue; /** @var callable :: int->string->void */ private $remove_translation_duplicate_status; /** * @param callable $addToQueue * @param callable $removeTranslationDuplicateStatus */ public function __construct( callable $addToQueue, callable $removeTranslationDuplicateStatus ) { $this->addToQueue = $addToQueue; $this->remove_translation_duplicate_status = $removeTranslationDuplicateStatus; } public function add_hooks() { add_action( 'init', [ $this, 'addToQueue' ] ); } public function addToQueue() { if ( isset( $_GET['ate_original_id'] ) ) { $ateJobId = (int) $_GET['ate_original_id']; if ( isset( $_GET['complete'] ) ) { call_user_func( $this->addToQueue, $ateJobId, ReturnedJobsQueue::STATUS_COMPLETED ); call_user_func( $this->remove_translation_duplicate_status, $ateJobId ); } elseif ( isset( $_GET['back'] ) ) { call_user_func( $this->addToQueue, $ateJobId, ReturnedJobsQueue::STATUS_BACK ); } } } }
[-] class-wpml-tm-ams-synchronize-actions.php
[edit]
[-] class-wpml-tm-ate-post-edit-actions.php
[edit]
[-] class-wpml-tm-old-editor.php
[edit]
[-] class-wpml-tm-ate-jobs-store-actions.php
[edit]
[-] class-wpml-tm-ate-jobs-actions.php
[edit]
[-] class-wpml-tm-ams-synchronize-users-on-access-denied-factory.php
[edit]
[-] class-wpml-tm-ate-job-data-fallback-action.php
[edit]
[-] class-wpml-tm-ate-api-error.php
[edit]
[-] class-wpml-tm-ams-synchronize-actions-factory.php
[edit]
[-] class-wpml-tm-ate-post-edit-actions-factory.php
[edit]
[-] JobActions.php
[edit]
[-] class-wpml-tm-ate-jobs-actions-factory.php
[edit]
[-] class-wpml-tm-ate-translator-login.php
[edit]
[-] class-wpml-tm-ate-translator-message-classic-editor.php
[edit]
[-] class-wpml-tm-ate-jobs-store-actions-factory.php
[edit]
[-] class-wpml-tm-ate-translator-message-classic-editor-factory.php
[edit]
[-] JobActionsFactory.php
[edit]
[-] class-wpml-tm-ate-translator-login-factory.php
[edit]
[-] ReturnedJobActionsFactory.php
[edit]
[-] class-wpml-tm-ate-job-data-fallback-action-factory.php
[edit]
[+]
..
[-] class-wpml-tm-ate-required-actions-base.php
[edit]
[-] ReturnedJobActions.php
[edit]
[-] class-wpml-tm-ams-synchronize-users-on-access-denied.php
[edit]
[-] class-wpml-tm-old-editor-factory.php
[edit]