| 开发者 |
4wpdev
anatolikkk |
|---|---|
| 更新时间 | 2026年6月18日 04:42 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
incoming/ folder and a review step before publishincoming/ and published/ subfolders.incoming/ or run Sync.published/ in Drive.incoming/ for new Google Docs and images--- or =====) map to post fields; body becomes post content (headings, lists, bold preserved)wp forwp-drive sync for manual syncsrc/ (PSR-4 autoload via src/Autoload.php when vendor/ is absent). No npm build step — admin scripts ship as plain JS in assets/.
Run tests: composer install && composer test && composer run lint
/wp-content/plugins/4wp-drive/ or install from the Plugins screen.FORWP_DRIVE_GOOGLE_CLIENT_ID, FORWP_DRIVE_GOOGLE_CLIENT_SECRET, or FORWP_DRIVE_OAUTH_REDIRECT_URI in wp-config.php.Yes. Create OAuth 2.0 credentials (Web application), enable the Google Drive API, and register the redirect URI shown in the plugin Documentation tab.
Google Docs in incoming/ (single doc or subfolder with doc + image). Front-matter uses Label: value lines before a separator paragraph (--- or a row of = characters). The rest is post body.
No. OAuth and Drive requests run on the server. Only administrators with manage_options can connect Drive and import.
Yes. Use FORWP_DRIVE_GOOGLE_CLIENT_ID and FORWP_DRIVE_GOOGLE_CLIENT_SECRET constants.
Yes. Use the OAuth redirect (local) field when Google rejects your site hostname; register the same loopback URI in Google Cloud Console.