WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mercuryfenix
    Member
    Posted 5 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
    Member
    Posted 5 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
    Member
    Posted 5 years ago #

    Ahh I see. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic