Is it possible to add a translation/text domain to a shortcode?
In my theme I use the standard code to translate a line, like:
<?php _e('Hello, this is text', 'domain'); ?>
But how can I implement this into my shortcode with a domain?
$shortcode .= '<span>Hello, this text should be translated.</span>'; return $shortcode;
Thanks in advance.
- The topic ‘Translate shortcode text’ is closed to new replies.