WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/ nx noop

Contents

Description

Register plural strings with context in POT file, but don't translate them.

Usage

<?php _nx_noop$singular$plural$context$domain ?>

Parameters

$singular
(string) (required) Singular form to be i18ned
Default: None
$plural
(string) (required) Plural form to be i18ned
Default: None
$context
(string) (required) Context information for the translators
Default: None
$domain
(string) (optional) The domain identifier the text will be retrieved in
Default: null

Return Values

(array) 
Returns an array containing six items - singular value, plural value and context.
array(
    0          =>  $singular,
    1          =>  $plural,
    3          =>  $context
    'singular' =>  $singular,
    'plural'   =>  $plural,
    'context'  =>  $context
)

Examples

Notes

Change Log

Source File

_nx_noop() is located in /wp-includes/l10n.php.

Related

L10n: translate(), __(), _e(), _n(), _x(), _ex(), _nx(), esc_attr__(), esc_attr_e(), esc_attr_x(), esc_html__(), esc_html_e(), esc_html_x(), _n_noop(), _nx_noop(), translate_nooped_plural()

See also index of Function Reference and index of Template Tags.