[wp-xmlrpc] Future Publishing
AJ Cerqueti
aj at cerqueti.co.uk
Fri Oct 9 14:22:58 UTC 2009
Hi Daniel,
Yeah, but using the existing xmlrpc.php file and functions, how would you do
this?
In blogger_newPost:
$post_date = current_time('mysql');
therefore always posting now as far as I can tell.
However, mw_newPost looks a bit more promising... Do you know where I can
find documentation on how $content_struct is supposed to be structured? I'm
assuming it's an array, but not sure how much or little is required. It
seems to be consulted to check for $content_struct['date_created_gmt'] and
$content_struct['date_created'], and if it finds neither, then sets
post_date to now. I'm hoping this is where you're leading me, as I'm hoping
to avoid editing any of the WP files!
Thanks,
AJ
On Fri, Oct 9, 2009 at 3:03 PM, Daniel Jalkut <jalkut at red-sweater.com>wrote:
> I'm not sure if this technique is what you consider the "hack," but with
> WordPress, an easy way to "future post" is literally to set the published
> date of the post to a future time. If WordPress sees that the date is newer
> than now, it will automatically save the incoming post as a scheduled future
> post instead of publishing it immediately.
>
> Daniel
>
>
> On Oct 9, 2009, at 10:02am, AJ Cerqueti wrote:
>
> Hi,
>>
>> Are there plans to add a wp_newPost() function to xmlrpc.php, or is it
>> felt that all requirements are met by blogger_newPost() and mw_newPost()?
>>
>> I'm just wondering, as I can't seem to figure out a way to Future Publish,
>> without a hack. It seems to be the only option missing from the whole
>> post_new.php page.
>>
>> Am I totally missing something, is there a workaround, or is this not
>> something that is felt is needed?
>>
>> Thanks,
>>
>> AJ Cerqueti
>> _______________________________________________
>> wp-xmlrpc mailing list
>> wp-xmlrpc at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-xmlrpc
>>
>
> _______________________________________________
> 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/20091009/7131f236/attachment.htm>
More information about the wp-xmlrpc
mailing list