{"id":10277166,"date":"2018-05-14T08:40:19","date_gmt":"2018-05-14T08:40:19","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/theme_location-value\/"},"modified":"2018-05-14T08:43:26","modified_gmt":"2018-05-14T08:43:26","slug":"theme_location-value","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/theme_location-value\/","title":{"rendered":"theme_location value"},"content":{"rendered":"<p>I have a menu made using Elementor and trying to customized my WPML language switcher. It needs the theme_location value but it is returning null, is there any other method to retrieve it?<\/p>\n<p>I&#8217;m using this function to find output the theme_location<\/p>\n<pre><code>\/\/ uncomment this to find your theme&#039;s menu location\n\/\/echo &quot;args:\n&lt;pre&gt;&quot;; print_r($args); echo &quot;&lt;\/pre&gt;<\/code><\/pre>\n<pre><code>\n    [item_spacing] =&gt; preserve\n    [depth] =&gt; 0\n    [walker] =&gt; \n    [theme_location] =&gt; \n)<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-10277166","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10277166","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":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10277166\/revisions"}],"predecessor-version":[{"id":10277181,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10277166\/revisions\/10277181"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10277166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}