[wp-xmlrpc] Hidden Custom Fields - Ruby

Bradly Swart brad8711 at gmail.com
Sun Dec 23 23:20:03 UTC 2012


Right, looks like I have some work ahead of me :)

Thanks for the pointers guys :)

Bradly Swart

Mobile: +61447068962
Skype: bradly.swart
Twitter: @brad8711 <http://twitter.com/brad8711>
linkedIn: http://za.linkedin.com/in/bradlyswart


On Mon, Dec 24, 2012 at 10:08 AM, Andrew Nacin <wp at andrewnacin.com> wrote:

> On Sun, Dec 23, 2012 at 6:03 PM, Bradly Swart <brad8711 at gmail.com> wrote:
>
>> Well, that being said I'm kind of at the point of just writing to the
>> table manually through MySQL connection.
>>
>> @Andrew, how can I add that filter to a xmlrpc request ?
>>
>
> You can't. The whole point is to prevent an XML-RPC client from modify
> content that a user may not be allowed to modify.
>
> You can, however, just add a plugin. It'd be a very short plugin:
>
> add_filter( 'is_protected_meta', function( $protected, $meta_key,
> $meta_type ) {
>     if ( 'post' == $meta_type && '_some_key' == $meta_key )
>         return false;
>     return $protected;
> }, 10, 3 );
>
> _______________________________________________
> wp-xmlrpc mailing list
> wp-xmlrpc at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-xmlrpc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-xmlrpc/attachments/20121224/f3800db2/attachment.htm>


More information about the wp-xmlrpc mailing list