Title: _nx_noop
Published: April 25, 2014
Last modified: February 24, 2026

---

# _nx_noop( string $singular, string $plural, string $context, string $domain = null ): array

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#wp--skip-link--target)

Registers plural strings with gettext context in POT file, but does not translate
them.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#description)󠁿

Used when you want to keep structures with translatable plural strings and use them
later when the number is known.

Example of a generic phrase which is disambiguated via the context parameter:

    ```php
    $messages = array(
         'people'  => _nx_noop( '%s group', '%s groups', 'people', 'text-domain' ),
         'animals' => _nx_noop( '%s group', '%s groups', 'animals', 'text-domain' ),
    );
    ...
    $message = $messages[ $type ];
    printf( translate_nooped_plural( $message, $count, 'text-domain' ), number_format_i18n( $count ) );
    ```

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#parameters)󠁿

 `$singular`stringrequired

Singular form to be localized.

`$plural`stringrequired

Plural form to be localized.

`$context`stringrequired

Context information for the translators.

`$domain`stringoptional

Text domain. Unique identifier for retrieving translated strings.

Default:`null`

## 󠀁[Return](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#return)󠁿

 array Array of translation information for the strings.

 * `0` string
 * Singular form to be localized. No longer used.
 * `1` string
 * Plural form to be localized. No longer used.
 * `2` string
 * Context information for the translators. No longer used.
 * `singular` string
 * Singular form to be localized.
 * `plural` string
 * Plural form to be localized.
 * `context` string
 * Context information for the translators.
 * `domain` string|null
 * Text domain.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#source)󠁿

    ```php
    function _nx_noop( $singular, $plural, $context, $domain = null ) {
    	return array(
    		0          => $singular,
    		1          => $plural,
    		2          => $context,
    		'singular' => $singular,
    		'plural'   => $plural,
    		'context'  => $context,
    		'domain'   => $domain,
    	);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/l10n.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/l10n.php#L654)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/l10n.php#L654-L664)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_MS_Sites_List_Table::get_views()](https://developer.wordpress.org/reference/classes/wp_ms_sites_list_table/get_views/)`wp-admin/includes/class-wp-ms-sites-list-table.php` |

Gets links to filter sites by status.

  | 
| [WP_Comments_List_Table::get_views()](https://developer.wordpress.org/reference/classes/wp_comments_list_table/get_views/)`wp-admin/includes/class-wp-comments-list-table.php` |  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/functions/_nx_noop/?output_format=md#comment-content-1527)
 2.   [Codex](https://profiles.wordpress.org/codex/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/_nx_noop/#comment-1527)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_nx_noop%2F%23comment-1527)
    Vote results for this note: -1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_nx_noop%2F%23comment-1527)
 4.     ```php
        $labels = array(
        	'draft' => array( _nx_noop( '%s Draft', '%s Drafts', 'post' ), _nx_noop( '%s Draft', '%s Drafts', 'page' ) ),
        	'publish' => array( _nx_noop( '%s Published', '%s Published', 'post' ), _nx_noop( '%s Published', '%s Published', 'page' ) ),
        );
        if ( $post_type == 'page' ) {
        	$labels = $labels[ $post_status ][1];
        } else {
        	$labels = $labels[ $post_status ][0];
        }
        $usable_text = sprintf( translate_nooped_plural( $labels, $count, $domain ), $count );
        ```
    
 5.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_nx_noop%2F%3Freplytocom%3D1527%23feedback-editor-1527)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_nx_noop%2F)
before being able to contribute a note or feedback.