__return_empty_array

Definition:
function __return_empty_array() {}

Returns an empty array.
Useful for returning an empty array to filters easily.

Return values

returns:Empty array

Source code

function __return_empty_array() {

	return array();

}

4429

__ngettext_noop

Definition:
function __ngettext_noop() {}

Register plural strings in POT file, but don’t translate them.

Source code

function __ngettext_noop() {

	_deprecated_function( __FUNCTION__, '2.8', '_n_noop()' );

	$args = func_get_args();

	return call_user_func_array('_n_noop', $args);



}

4427

__ngettext

Definition:
function __ngettext() {}

Retrieve the plural or single form based on the amount.

Source code

function __ngettext() {

	_deprecated_function( __FUNCTION__, '2.8', '_n()' );

	$args = func_get_args();

	return call_user_func_array('_n', $args);

}

4425

__

Definition:
function __( $text, $domain = 'default' ) {}

Retrieves the translation of $text. If there is no translation, or the domain isn’t loaded, the original text is returned.

Parameters

  • string $text: Text to translate
  • string $domain: Optional. Domain to retrieve the translated text

Return values

returns:Translated text

Source code

function __( $text, $domain = 'default' ) {

	return translate( $text, $domain );

}

4423

_x

Definition:
function _x( $text, $context, $domain = 'default' ) {}

Retrieve translated string with gettext context
Quite a few times, there will be collisions with similar translatable text found in more than two places but with different translated context.

Parameters

  • string $text: Text to translate
  • string $context: Context information for the translators
  • string $domain: Optional. Domain to retrieve the translated text

Return values

returns:Translated context string without pipe

Source code

function _x( $text, $context, $domain = 'default' ) {

	return translate_with_gettext_context( $text, $context, $domain );

}

4421