We’ve released a quick update to the Docs to WordPress plugin that allows the plugin to integrate with WP Cron rather than requiring you to create your own file to run cron against (though you can still do that, too). To take advantage of it, you’ll have to upgrade to the latest version and edit your wp-config file to define at least three variables:
DOCSTOWP_USER: Your Google Docs username
DOCSTOWP_PASS: Your Google Docs password
DOCSTOWP_ORIGIN: The ID of the origin folder you want to draw the docs from
DOCSTOWP_DESTINATION: This one’s optional, but if defined it will put the docs in this folder when everything is finished processing.
To define a variable:
[php]define( ‘DOCSTOWP_USER’, ‘firstname.lastname@example.org’ );[/php]
To get the ID of the folder, look to the URL. It will look something like this:
https://docs.google.com/#folders/folder.0.!–ID STARTS HERE, AFTER THE 0 and the period –!
A quick note: I decided to hardcode the variables in wp-config instead of using a setting because I’d rather store a plaintext password on the server than in the database. Obviously, neither are ideal, so if anybody has a better solution I’m all ears.