[wp-xmlrpc] Future Publishing
aj at cerqueti.co.uk
Fri Oct 9 14:22:58 UTC 2009
Yeah, but using the existing xmlrpc.php file and functions, how would you do
$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!
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.
> On Oct 9, 2009, at 10:02am, AJ Cerqueti wrote:
>> 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?
>> AJ Cerqueti
>> wp-xmlrpc mailing list
>> wp-xmlrpc at lists.automattic.com
> wp-xmlrpc mailing list
> wp-xmlrpc at lists.automattic.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wp-xmlrpc