title: Deciphering a WordPress Plugin
body: <p>I'm trying to understand a section of code from this WordPress plugin: <a href="https://wordpress.org/plugins/menu-items-visibility-control/" rel="nofollow">https://wordpress.org/plugins/menu-items-visibility-control/</a>. The first thing I don't understand is the value label of the input: <code>value="&lt;?php echo esc_html( get_post_meta( $item_id, '_menu_item_visibility', true ) ); ?&gt;"</code> Can someone explain what is going on here? The variable '_menu_item_visibility' is a WP conditional tag entered by the user, and the menu item is hidden unless the tag evaluates to true. I'm also curious what there is no method label for this input. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>function option( $item_id, $item, $depth, $args ) { ?&gt;
    &lt;p class="field-visibility description description-wide"&gt;
     &lt;label for="edit-menu-item-visibility-&lt;?php echo $item_id; ?&gt;"&gt;
      &lt;?php _e('Visibility') ?&gt;:
      &lt;input type="text" class="widefat code" id="edit-menu-item-visibility-&lt;?php echo $item_id ?&gt;" name="menu-item-visibility[&lt;?php echo $item_id; ?&gt;]" value="&lt;?php echo esc_html( get_post_meta( $item_id, '_menu_item_visibility', true ) ); ?&gt;" /&gt;
     &lt;/label&gt;
    &lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>