Custom string translation wpml wordpress using php

First you need to have wordpress hosting that supports WPML such as greenbackend Unlimited and Geko Pro from here

Second, you have to define your static strings and with the associated wpml domain as following:

Finally, you have to call your defined strings and you could translate them from the string translation section in your wordpress dashboard.