WordPress.org

Ready to get started?Download WordPress

Forums

RE: edit_post_link (5 posts)

  1. konstantinos
    Member
    Posted 7 years ago #

    I would like to ask:

    What is the difference between edit_post_link('Edit'); and edit_post_link(__('Edit'));?

    Thanks in advance for your help!

  2. moshu
    Member
    Posted 7 years ago #

    The second one is prepared for localization (l10n), i.e. it must come from a theme that is "internationalized" (i18n).

    More details:
    http://codex.wordpress.org/Translating_WordPress#Localization_Technology

  3. konstantinos
    Member
    Posted 7 years ago #

    Thank you for the reply. Do the parameters for the former stand for the latter too?

    e.g. edit_post_link(__('edit', '<p>', '</p>'));

    Because my tests show they don't...

  4. moshu
    Member
    Posted 7 years ago #

    Never checked, although they should. However, if it doesn't work and you don't intend to distribute your theme to international users - you don't really need it.

  5. konstantinos
    Member
    Posted 7 years ago #

    I see.

    Again, thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic