<div dir="ltr">Yea, I had a look at that, I couldn&#39;t figure out how to call it from a Ruby xmlrpc call though :/</div><div class="gmail_extra"><br clear="all"><div><div><div>Bradly Swart</div><div><br></div><div>Mobile: +61447068962</div>
<div>Skype: bradly.swart</div><div>Twitter: <a href="http://twitter.com/brad8711" target="_blank">@brad8711</a></div></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">linkedIn:</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> </span><font color="#222222" face="arial, sans-serif"><a href="http://za.linkedin.com/in/bradlyswart" target="_blank">http://za.linkedin.com/in/bradlyswart</a></font></div>
</div>
<br><br><div class="gmail_quote">On Mon, Dec 24, 2012 at 9:54 AM, Marko Heijnen <span dir="ltr">&lt;<a href="mailto:mailing@markoheijnen.nl" target="_blank">mailing@markoheijnen.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hey Bradly,<div><br></div><div>You can&#39;t modify hidden fields trough the XMLRPC. Since it is considered protected. You can however whitelist those fields by using register_meta().</div>
<div>I never used it myself and there isn&#39;t a codex page for, so you do need to look in the core for how it works. Some information can be found on trac: <a href="http://core.trac.wordpress.org/ticket/19919" target="_blank">http://core.trac.wordpress.org/ticket/19919</a></div>
<div><br></div><div>Marko</div><div><br><div><div>Op 23 dec. 2012, om 23:41 heeft Bradly Swart &lt;<a href="mailto:brad8711@gmail.com" target="_blank">brad8711@gmail.com</a>&gt; het volgende geschreven:</div><br><blockquote type="cite">
<div><div class="h5"><div dir="ltr">Hi List,<div><br></div><div>I&#39;ve been putting around the net over the past few days figuring out how to get xmlrpc working with ruby. I&#39;m trying to do some programmatic insertion of products into a WooCommerce site. Running the latest version of Wordpress. I&#39;ve read some stuff on add_post_meta() but hasnt helped.</div>

<div><br></div><div>I&#39;ve managed to get the posting working, as well as custom fields, the problem has come in with hidden fields. In the snippet bellow product_url works fine, _sku doesn&#39;t</div><div><br></div><div>

snippet as part of the post content:</div><div>-------------------------------------------------------------------------------------------------------------------------</div><div><div>&#39;custom_fields&#39; =&gt; [{&#39;key&#39; =&gt; &#39;product_url&#39;, &#39;value&#39; =&gt; &#39;<a href="http://mysite.com/?rsid=9999&#39;" target="_blank">http://mysite.com?rsid=9999&#39;</a>},</div>

<div>                      {&#39;key&#39; =&gt; &quot;_sku&quot;, &#39;value&#39; =&gt;  &#39;9999&#39;}]</div></div><div>-------------------------------------------------------------------------------------------------------------------------<br>

</div><div><br></div><div>XMLRPC Call:</div><div>-------------------------------------------------------------------------------------------------------------------------<br></div><div><div>post_id = connection.call(</div>

<div>  &#39;metaWeblog.newPost&#39;,</div><div>  1,</div><div>  &#39;user&#39;,</div><div>  &#39;password&#39;,</div><div>  post,</div><div>  true</div><div>)</div><div>-------------------------------------------------------------------------------------------------------------------------<br>

</div><div><br></div><div>Hoping someone can help me out.</div><div><br></div><div><div><div>Bradly Swart</div><div><br></div><div>Mobile: <a href="tel:%2B61447068962" value="+61447068962" target="_blank">+61447068962</a></div>
<div>Skype: bradly.swart</div><div>Twitter: <a href="http://twitter.com/brad8711" target="_blank">@brad8711</a></div>
</div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">linkedIn:</span><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"> </span><font color="#222222" face="arial, sans-serif"><a href="http://za.linkedin.com/in/bradlyswart" target="_blank">http://za.linkedin.com/in/bradlyswart</a></font></div>

</div>
</div></div></div></div>
_______________________________________________<br>wp-xmlrpc mailing list<br><a href="mailto:wp-xmlrpc@lists.automattic.com" target="_blank">wp-xmlrpc@lists.automattic.com</a><br><a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
</blockquote></div><br></div></div><br>_______________________________________________<br>
wp-xmlrpc mailing list<br>
<a href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
<br></blockquote></div><br></div>