[wp-xmlrpc] Hidden Custom Fields - Ruby

Andrew Nacin wp at andrewnacin.com
Sun Dec 23 22:58:37 UTC 2012


On Sun, Dec 23, 2012 at 5:54 PM, Marko Heijnen <mailing at markoheijnen.nl>wrote:

> Hey Bradly,
>
> You can't modify hidden fields trough the XMLRPC. Since it is considered
> protected. You can however whitelist those fields by using register_meta().
> I never used it myself and there isn'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:
> http://core.trac.wordpress.org/ticket/19919
>

Rather, you can modify any fields that are not considered "protected". The
default rule for this is whether it starts with an underscore.

You can adjust this by, as Marko says, using register_meta() with an
auth_callback, or by simply using the is_protected_meta filter.

Nacin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-xmlrpc/attachments/20121223/72939944/attachment.htm>


More information about the wp-xmlrpc mailing list