Support » Themes and Templates » Why are theme names specified in PHP functions?

  • Resolved karyl.gilbertson

    (@karylgilbertson)


    I have been seeing this sort of thing around a lot while customizing themes.

    <?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>

    Why does it say “twentyeleven” in there? I am seeing this in a ton of different PHP functions in multiple themes (different name depending on the theme of course).

    I tried removing them to see what it would do, and it didn’t break anything. So what purpose do they serve?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Why are theme names specified in PHP functions?’ is closed to new replies.