Forums

twentyten parameter in template tags? (3 posts)

  1. coold78
    Member
    Posted 1 year ago #

    I was wondering if someone could help me out with this. I have been creating custom WP templates for a while and have always used the default Kubrik theme as a starting point, so now in WP 3, I have been picking apart the Twenty Ten theme and am interested in the use of the Theme Name within some Template Tags.

    Here is an example
    <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>

    Can someone explain why the use of the 'twentyten' within this template tag?

    Thanks

  2. axim30
    Member
    Posted 1 year ago #

    I'm not 100% sure but I guess it is used for translation, triggered by the __( xxx ) part. Twentyten is the resource to use for the translation.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    @axim30: You're 100% correct. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.