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); }