The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Admin Menus (question on an example from the codex) (3 posts)

  1. mercuryfenix
    Posted 7 years ago #

    I have a quick question about this codex topic.

    I am new to creating admin menus and I don't understand what mt_trans_domain does in the example.

  2. tslice
    Posted 7 years ago #

    mt = menu test, and the _e() function:

    * Displays the returned translated text from translate().
    * @see translate() Echos returned translate() string
    * @since 1.2.0
    * @param string $text Text to translate
    * @param string $domain Optional. Domain to retrieve the translated text
    function _e($text, $domain = 'default') {
    echo translate($text, $domain);

  3. mercuryfenix
    Posted 7 years ago #

    Ahh I see. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic