[wp-xmlrpc] Hidden Custom Fields - Ruby
Andrew Nacin
wp at andrewnacin.com
Sun Dec 23 23:08:28 UTC 2012
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 );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-xmlrpc/attachments/20121223/5c90a2f8/attachment.htm>
More information about the wp-xmlrpc
mailing list