Embed website screenshots and generate PDFs using the Capture API with simple WordPress shortcodes.
- 📸 Screenshot Shortcodes - Easily embed website screenshots
- 📄 PDF Generation - Create downloadable PDFs from web pages
- ⚙️ Configurable Defaults - Set default viewport, delay, and other settings
- 📱 Responsive Images - Screenshots adapt to different screen sizes
- 🧪 Test Connection - Verify API credentials directly from admin
- WordPress 4.7+
- PHP 7.4+
- Capture API account (get your API key and secret)
- Download the plugin ZIP file
- Go to Plugins > Add New > Upload Plugin
- Upload the ZIP file and activate the plugin
- Go to Settings > Capture to configure your API credentials
- Upload the plugin folder to
/wp-content/plugins/
- Activate the plugin through the WordPress admin
- Configure your API settings
[capture_screenshot url="https://example.com"]
[capture_screenshot url="https://example.com" vw=1440 vh=900 full=true darkMode=true blockAds=true type="webp"]
[capture_pdf url="https://example.com" format="A4" text="Download PDF"]
url
- Target website URL
vw
- Viewport width (default: 1440)vh
- Viewport height (default: 900)scaleFactor
- Screen scale factor (default: 1)top
- Top offset for clippingleft
- Left offset for clippingwidth
- Clipping widthheight
- Clipping height
full
- Capture full page (true/false)darkMode
- Dark mode screenshot (true/false)blockAds
- Block advertisements (true/false)blockCookieBanners
- Dismiss cookie consent (true/false)selector
- Screenshot specific CSS selectortransparent
- Transparent background (true/false)delay
- Delay before capture in secondstype
- Image format (png, jpeg, webp)fresh
- Force new screenshot (true/false)
class
- CSS class for the imagealt
- Alt text for accessibilityloading
- Loading attribute (lazy/eager)
url
- Target website URL
format
- Paper size (A4, Letter, Legal, etc.)landscape
- Orientation (true/false)scale
- Rendering scale (default: 1)marginTop/Bottom/Left/Right
- Page margins
printBackground
- Include background graphics (true/false)delay
- Wait time before capturetext
- Link text (default: "Download PDF")target
- Link target (_blank/_self)class
- CSS class for the link
- Clone this repository
- Run
docker-compose up -d
- Access WordPress at
http://localhost:8080
- The plugin will be automatically available in the WordPress plugins directory
capture-wordpress/
├── assets/
│ ├── css/capture-style.css
│ └── js/capture-admin.js
├── includes/
│ ├── class-capture-admin.php
│ └── class-capture-api.php
├── capture-page.php
├── readme.txt (WordPress.org format)
└── README.md (This file)
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request