Implementing conditional gettext translation
WordPress provides the _x() function which is just like __(), but it adds the $context parameter which is used to differentiate between identical strings. In the example below, some output is generated in the footer. The translatable string is Message is used in both cases, but in the first instance, Message is given the context … Read more