Switch language

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




get_translations_for_domain [ WordPress Function ]

get_translations_for_domain ( $domain )
Parameters:
  • (string) $domain
Returns:
  • (object) A Translation instance
Defined at:



Returns the Translations instance for a domain. If there isn't one, returns empty Translations instance.

Source


<?php
function &get_translations_for_domain$domain ) {
    global 
$l10n;
    if ( !isset( 
$l10n[$domain] ) ) {
        
$l10n[$domain] = new NOOP_Translations;
    }
    return 
$l10n[$domain];
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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