Build Amazon Affiliate Plugin
Create a WordPress plugin that detects Amazon affiliate links, extracts ASINs, displays product ads with caching, admin settings, and Gutenberg block support.
Latest: v1.0.0
Initial release of build-amazon-affiliate-plugin
- Launches a WordPress plugin (“Ad Symbiont”) to display Amazon product ads for affiliate links.
- Detects Amazon links, extracts ASIN, and generates ad units with product information.
- Provides an admin settings page for affiliate tag, display options, and styling controls.
- Supports fallback ads if PA-API is unavailable and caches ad units for better performance.
- Includes Gutenberg block support and adheres to WordPress and Amazon Associates best practices.
Build Amazon Affiliate Ad Plugin
Quick Start
- Read PLUGIN_SPEC.md for detailed requirements
- Read AMAZON_API.md for PA-API integration
- Generate the plugin code following the specifications
Plugin Requirements Summary
- Name: Ad Symbiont
- Features:
- Detect Amazon links (amazon.com, amazon.ca, amazon.co.uk, amzn.to)
- Extract ASIN from URLs
- Admin settings: Affiliate tag, display mode (replace/append), styling toggle
- Fallback to simple HTML ad if no PA-API credentials
- Caching for ad units (transients)
- Gutenberg block support
- WordPress 6.x compatible
- Secure: sanitize/escape all inputs/outputs
Output
Generate:
- Complete plugin PHP file
- CSS/JS assets if needed
- Installation instructions
- Expansion options documentation
Save all files to: /home/imjohnathan/.openclaw/workspace/skills/build-amazon-affiliate-plugin/
