Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




translate_nooped_plural [ WordPress Function ]

translate_nooped_plural ( $nooped_plural, $count, $domain = 'default' )
Parameters:
  • (array) $nooped_plural Array with singular, plural and context keys, usually the result of _n_noop() or _nx_noop()
  • (int) $count Number of objects
  • (string) $domain Optional. The domain identifier the text should be retrieved in. If $nooped_plural contains a domain passed to _n_noop() or _nx_noop(), it will override this value.
Defined at:



Translate the result of _n_noop() or _nx_noop()

Source


<?php
function translate_nooped_plural$nooped_plural$count$domain 'default' ) {
    if ( 
$nooped_plural['domain'] )
        
$domain $nooped_plural['domain'];

    if ( 
$nooped_plural['context'] )
        return 
_nx$nooped_plural['singular'], $nooped_plural['plural'], $count$nooped_plural['context'], $domain );
    else
        return 
_n$nooped_plural['singular'], $nooped_plural['plural'], $count$domain );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics