Hyperlink, function of second value: ( 'URL' , ' ? ')

Hey guys,

I’m working on a WordPress child theme. Regarding the footer, I’m uncertain about the second value after the link URL:

<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>">

What exactly is the function of ‘twentysixteen’ in this case? I suspect it’s some kind of description, but if so, when and how does it show up in the browser?

I’ve tried looking this up, of course, but somehow I couldn’t find the answer :-[

Okay I’m not a Wordpress developer so bare with me, the __ function is a localization function http://codex.wordpress.org/Function_Reference/_2.

twentysixteen is the name of the theme.

:o

That’s quite helpful already, thanks! Now at least I can read up on this (just found an article about “I18n for WordPress Developers”.

What I’m trying to decide now is whether to keep this value when I add elements via my child theme or simply delete it. I suspect the worst that could happen is a less than optimal result for the localization (need to understand how that works, exactly…)

Sponsor our Newsletter | Privacy Policy | Terms of Service