{"id":10272859,"date":"2018-05-12T09:17:45","date_gmt":"2018-05-12T09:17:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/very-basic-question-2\/"},"modified":"2018-05-12T11:07:17","modified_gmt":"2018-05-12T11:07:17","slug":"very-basic-question-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/very-basic-question-2\/","title":{"rendered":"Registering nav menu question"},"content":{"rendered":"<p>Hi!<br \/>\nMy name is Peter and I&#8217;m taking my first small babysteps in WP development. <\/p>\n<p>There&#8217;s a lot to be found on many different websites, but there&#8217;s one thing I can not get an explanation for. It could be that the question has been asked many times before, or that I&#8217;m posting this in the wrong section. Would you be so kind to guide me further to the correct way of using the forums in that case?<\/p>\n<p>While working on customizing existing themes and in the WP documentation, I see a reference to a self-defined name within calls, e.g.:<\/p>\n<p>&#8216;myfirsttheme&#8217; in the array below<\/p>\n<p>register_nav_menus( array(<br \/>\n    &#8216;primary&#8217;   =&gt; __( &#8216;Primary Menu&#8217;, &#8216;myfirsttheme&#8217; ),<br \/>\n    &#8216;secondary&#8217; =&gt; __( &#8216;Secondary Menu&#8217;, &#8216;myfirsttheme&#8217; )<br \/>\n) );<\/p>\n<p>or here<\/p>\n<p>load_theme_textdomain( &#8216;myfirsttheme&#8217;, get_template_directory() . &#8216;\/languages&#8217; );<\/p>\n<p>I&#8217;ve seen developers that use this and some who don&#8217;t, but I can not get a clear understanding of the use of the parameter. Can someone maybe explain how this works?<\/p>\n<p>Thanks and rgds,<br \/>\nPeter<\/p>\n","protected":false},"template":"","class_list":["post-10272859","topic","type-topic","status-publish","hentry","topic-tag-development","topic-tag-functions","topic-tag-namespace","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10272859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10272859\/revisions"}],"predecessor-version":[{"id":10273069,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10272859\/revisions\/10273069"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10272859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}