_ex() WordPress Function

The ex() function is used to retrieve the contents of a post or page. It takes two parameters: the post or page ID and the field to retrieve. The field can be one of four values: 'post_content', 'post_title', 'post_excerpt', or 'post_status'.

_ex( string $text, string $context, string $domain = 'default' ) #

Display translated string with gettext context.


Parameters

$text

(string)(Required)Text to translate.

$context

(string)(Required)Context information for the translators.

$domain

(string)(Optional) Text domain. Unique identifier for retrieving translated strings.

Default value: 'default'


Top ↑

Source

File: wp-includes/l10n.php

function _ex( $text, $context, $domain = 'default' ) {
	echo _x( $text, $context, $domain );
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

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.