title: Autofill post meta wordpress PHP?
body: <p>I want to make a script which autofilled post meta in wordpress, I did one on javascript but I need on PHP and I don't know exactly how can I do it on PHP.</p>
  
  <p>This is in Javascript(it works).</p>
  
  <pre><code>var imdbid = $('input[name=Checkbx2]').get(0).value;
      $.getJSON("http://www.omdbapi.com/?i=" + imdbid + "&amp;plot=full&amp;tomatoes=true", function(data) {
          $.each(data, function(key, val) {
              if(key == "Year"){
                  $('#input[name=year]').val(val);
              }
          });
      }); 
  </code></pre>
  
  <p>Can you told me which is equivalence in php of <code>$('#input[name=year]').val(val);</code> ?</p>