is_valid_action( self::AJAX_ACTION ) ) { $scan_dir = new WPML_ST_Scan_Dir(); $file_hashing = new WPML_ST_File_Hashing(); $hooks = new WPML_ST_Theme_Plugin_Scan_Dir_Ajax( $scan_dir, $file_hashing ); } return $hooks; } }