WordPress.org

Ready to get started?Download WordPress

Forums

Trying to find reason for php code in wordpress (4 posts)

  1. Connor Miles
    Member
    Posted 1 year ago #

    hi, i have seen many themes that have this <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>

    looking at the bold "bonestheme" its in like every command just wondering what it does

    thanks

  2. ronangelo
    Member
    Posted 1 year ago #

    That's the theme's text domain. It enables translation of the string into another language if available.

  3. Connor Miles
    Member
    Posted 1 year ago #

    ok thanks is there like a place where this is first mentioned or like a function defining the text domain

  4. ronangelo
    Member
    Posted 1 year ago #

    Yes. It is usually added in the functions file.

    load_theme_textdomain( 'bonestheme', get_template_directory() . '/languages' );

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.