function dtwp_check_gdocs()
{
    //Init the Docs to WP
    $docs_to_wp = new Docs_To_WP();
    //We're just going to call one function:
    $result = $docs_to_wp->startTransfer();
    do_action('docs_to_wp_post_cron_run', $result);
}
function dtwp_check_gdocs()
{
    //Init the Docs to WP
    $docs_to_wp = new Docs_To_WP();
    //Set these variables in your wp-config
    $gdClient = $docs_to_wp->docs_to_wp_init(DOCSTOWP_USER, DOCSTOWP_PASS);
    //We're just going to call one function:
    $docs_to_wp->retrieve_docs_for_web($gdClient, DOCSTOWP_ORIGIN, DOCSTOWP_DESTINATION);
}
Example #3
0
function gdocs_admin()
{
    //Init the Docs to WP
    $docs_to_wp = new Docs_To_WP();
    //Set these variables in your wp-config
    $gdClient = $docs_to_wp->docs_to_wp_init(DOCSTOWP_USER, DOCSTOWP_PASS);
    ?>

	<h2>Fetching documents from Google Docs</h2>

	<?php 
    //We're just going to call one function:
    $docs_to_wp->retrieve_docs_for_web($gdClient, DOCSTOWP_ORIGIN, DOCSTOWP_DESTINATION);
}