NOOP_Translations::translate() WordPress Method

The NOOP_Translations::translate() WordPress method is used to translate a string into the current language. The string can be a word or phrase. If the string is not found in the current language, it will be translated into the default language.

NOOP_Translations::translate( string $singular, string $context = null ) #


Parameters

$singular

(string)(Required)

$context

(string)(Optional)

Default value: null


Top ↑

Source

File: wp-includes/pomo/translations.php

		public function translate( $singular, $context = null ) {
			return $singular;
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.