| 开发者 | pdfgate |
|---|---|
| 更新时间 | 2026年10月13日 05:28 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[pdfgate_download] shortcode for classic themes and page builders.PDFGATE_API_KEY constant in wp-config.php.[pdfgate_download] shortcode, or enable "Add automatically" for your post types.The "Public page URL" render mode needs PDFGate to fetch your page, so the site must be reachable from the internet and the post must be public. Switch to "Post content" mode for local development, staging sites behind a login, or drafts.
In URL mode, add the CSS class pdfgate-hide to any element, or target the pdfgate-render body class in your stylesheet. The download button itself is always hidden.
One per post per edit. The generated file is cached in wp-content/uploads/pdfgate and served from there until the post is updated, the settings change, or a day passes. Visitors are also limited to ten fresh generations per minute. Developers can change both with the pdfgate_cache_ttl and pdfgate_rate_limit filters.
Yes. Use the pdfgate_generate_payload filter to set any option documented at https://pdfgate.com/documentation/generate-pdf, for example header, footer, css or javascript.
Encrypted in the WordPress options table, using a key derived from your site's authentication salts. You can instead define PDFGATE_API_KEY in wp-config.php, in which case the settings page becomes read-only for the key.