Provides access to the title of certain objects such as Navigation, Content, Theme,
Profile, and others.
If no attribute is used, then the attribute value is used by default.
Attributes:
- direction
- Provides the direction that the title is read.
Example:
${wp.title.direction}
Parameters: none
Returns: String, either ltr or rtl; it is never null.
- get(locale)
- Gets the title in the specified locale.
Example:
${wp.title['de']}
- Parameters:
- locale
- The locale code for the language you want.
- Returns: String containing the title in the specified locale.
- locale
- Provides the current locale.
Example:
${wp.title.locale}
Parameters: none
Returns: Locale object that represents the current locale.
- value
- Provides the title in the current locale.
Example:
${wp.title.value}
Parameters: none
Returns: String containing the title in the current locale.
- xmlLocale
- Provides the current locale as defined by IETF BCP 47.
Example:
${wp.title.xmlLocale}
Parameters: none
Returns: String containing the current local in XML format. For example,
en-us.