Installation
- Download the WorkmanLinks
.zip file from your account or the free download link.
- In WordPress, go to Plugins → Add New → Upload Plugin.
- Upload the zip file and click Install Now.
- Click Activate Plugin.
- Navigate to Settings → WorkmanLinks to configure your API credentials.
First time? You'll need at least one Amazon API configured (Creators API or PA-API 5.0) before shortcodes will pull product data.
Amazon Creators API (OAuth 2.0)
Amazon's new Creators API uses OAuth 2.0 authentication and is the recommended connection method. Amazon has deprecated PA-API 5.0 in favor of this new API.
Setup Steps
- Log in to Amazon Associates → Tools → Product Advertising API.
- Request or locate your Credential ID and Credential Secret.
- In WordPress, go to Settings → WorkmanLinks → Settings tab.
- Enter your Credential ID, Credential Secret, and Partner Tag.
- Select your API Version:
2.1 — North America (US, CA, MX, BR)
2.2 — Europe (UK, DE, FR, ES, IT, NL, SE, PL, BE, TR, AE, SA, EG)
2.3 — Far East (JP, AU, SG, IN)
- Click Test Connection to verify.
Token caching: OAuth tokens are automatically cached for 55 minutes, minimizing API calls and improving performance.
Amazon PA-API 5.0 (Legacy)
PA-API 5.0 uses AWS Signature V4 authentication. WorkmanLinks supports this as a fallback for accounts that haven't transitioned to the Creators API yet.
Setup Steps
- Get your Access Key and Secret Key from Amazon Associates.
- In WordPress, go to Settings → WorkmanLinks → Settings tab.
- Enter your Access Key, Secret Key, and Partner Tag.
- Select your Amazon marketplace region.
- Click Test Connection to verify.
Deprecation notice: Amazon is sunsetting PA-API 5.0 in favor of the Creators API. We recommend migrating as soon as possible.
[wml] — Product Image
Free
Displays a product image with an affiliate link. Lazy-loaded, responsive, and cached.
Usage
[wml asin="B08N5WRWNW"]
Parameters
| Parameter | Required | Description |
asin | Yes | Amazon product ASIN |
[wml_box] — Product Card
Free
Full product card with image, title, feature bullets, price, and buy button. Supports light and dark themes.
Usage
[wml_box asin="B08N5WRWNW" template="light"]
Parameters
| Parameter | Required | Default | Description |
asin | Yes | — | Amazon product ASIN |
template | No | light | Card theme: light or dark |
ZimmWriter compatible: WorkmanLinks shortcodes work seamlessly with ZimmWriter's AI content generation.
[wml_product] — Multi-Network Product
Pro
Display any product from the multi-network Product Manager. Supports products from Amazon, Avantlink, Impact, ShareASale, CJ, Rakuten, AWIN, Partnerize, and Refersion.
Usage
[wml_product slug="fishing-rod" style="box"]
Parameters
| Parameter | Required | Default | Description |
slug | Yes | — | Product slug from the Product Manager |
style | No | box | Display style |
[wml_products] — Product Grid
Pro
Auto-generate a responsive product grid filtered by category, network, or count.
Usage
[wml_products category="Fishing" count="4"]
Parameters
| Parameter | Required | Default | Description |
category | No | All | Filter by product category |
count | No | 4 | Number of products to display |
network | No | All | Filter by affiliate network |
AI Auto Mode
Pro
AI Auto Mode uses AI to analyze your post content, extract relevant keywords, and automatically insert matching affiliate product displays. Set it once and products appear in your content as you publish.
How It Works
- When a post is loaded, the AI engine scans the content for product-relevant keywords.
- Matching products from your Amazon catalog (or Product Manager) are identified.
- Product displays are automatically inserted at optimal positions in your content.
- The AI Product Validator (if enabled) checks that products are actually relevant.
Configuration
Go to Settings → WorkmanLinks → Auto Mode tab to configure:
- Enable/Disable — Toggle auto mode on or off
- Placement — Where products appear (after paragraphs, at end, etc.)
- Frequency — Maximum products per post
- Filtering — Category or keyword exclusions
AI Model: Auto Mode uses OpenAI's GPT-4.1 Nano for keyword extraction — fast, accurate, and cost-efficient. Requires an OpenAI API key.
Auto-Linker
Pro
Automatically converts keywords in your content into affiliate links. No need to manually add links — the Auto-Linker handles it based on your configured keyword-to-link mappings.
Features
- Priority mapping — Set which keywords take priority when multiple matches exist
- Frequency limits — Control how many times a keyword gets linked per post
- Smart protection — Automatically skips headings, existing links, and code blocks
- Keyword management — Add, edit, and bulk-manage keyword-to-link pairs in the Keywords tab
Configuration
Go to Settings → WorkmanLinks → Keywords tab to manage your keyword mappings.
Product Manager
Pro
The Product Manager lets you store and manage affiliate products from any network — not just Amazon. Add products from Avantlink, Impact, ShareASale, CJ, Rakuten, AWIN, Partnerize, and Refersion, then display them using shortcodes.
Supported Networks
Amazon
Avantlink
Impact
ShareASale
CJ Affiliate
Rakuten
AWIN
Partnerize
Refersion
Adding Products
- Go to Settings → WorkmanLinks → Products tab.
- Click Add Product.
- Fill in the product details: name, slug, URL, image, price, category, and network.
- Save. Use
[wml_product slug="your-slug"] to display it.
Trending News Harvester
Pro
Uses the Perplexity AI API to discover trending topics and news in your niche. Great for finding content ideas that pair well with affiliate products.
Categories
- 2nd Amendment
- Military
- Constitution
- Investing
- Crypto
- AI / Tech
Configuration
- AI Model: Choose between Sonar (faster) or Sonar Pro (more thorough)
- Timeframe: 24 hours, 7 days, or 30 days
- Rate limit: 10 queries per hour to manage API costs
API Key: Requires a Perplexity API key. Set it in the Trending tab or via WML_PERPLEXITY_API_KEY in wp-config.php.
AI Product Validator
Pro
The validator uses AI to verify that auto-inserted products are actually relevant to your content. No more random kitchen gadgets showing up in your fishing article.
When enabled, the validator runs as a second pass after Auto Mode inserts products. Irrelevant products are removed before the page is served to visitors.
Migration Tools
Agency
Switching from another affiliate plugin? WorkmanLinks can read common shortcode formats natively, so your existing content keeps working with zero downtime.
Supported Migration Paths
- AAWP shortcodes — WorkmanLinks recognizes and renders AAWP-format shortcodes automatically
- AFFI.ai shortcodes — Compatible with AFFI.ai shortcode format
How to Migrate
- Install and activate WorkmanLinks (Agency plan).
- Go to Settings → WorkmanLinks → Migrate tab.
- Enable the compatibility layer for your previous plugin.
- Test a few posts to verify product displays render correctly.
- Once confirmed, you can safely deactivate the old plugin.
Keep a backup: Always back up your database before deactivating your previous affiliate plugin.
Cache Management
WorkmanLinks uses a two-tier caching system to minimize API calls and keep your site fast.
How Caching Works
- Primary cache (24 hours) — Product data is cached for 24 hours after the first API fetch. During this period, no additional API calls are made.
- Backup cache (30 days) — If the API is temporarily unavailable, WorkmanLinks falls back to the 30-day backup cache so your product displays never go blank.
- Image caching — Product images are downloaded and served from your own server, reducing external requests and improving page load times.
Clearing the Cache
Go to Settings → WorkmanLinks → Cache tab to:
- Clear all cached product data
- Clear cached images
- View cache statistics
Diagnostics & Logs
WorkmanLinks includes a full diagnostics system to help you troubleshoot issues and verify everything is working correctly.
Diagnostics Tab
Go to Settings → WorkmanLinks → Diagnostics tab to access:
- Connection Tests — Test your Amazon Creators API and PA-API connections with one click. Shows detailed request/response data.
- API Status — View the current state of your API credentials, token expiration, and last successful call.
- Product Lookup — Test a specific ASIN to see the raw API response and verify data is coming through.
- System Info — PHP version, WordPress version, active plugins, and server configuration relevant to WorkmanLinks.
Error Logging
WorkmanLinks logs API errors and important events to help with debugging:
- API failures — Failed API calls are logged with status codes, error messages, and timestamps.
- Token refresh events — OAuth token refreshes are tracked so you can verify the Creators API connection is healthy.
- Cache misses — When a product isn't found in cache and requires an API call, it's logged.
- Rate limiting — If you hit Amazon's API rate limits, the specific throttled requests are recorded.
Common Diagnostic Scenarios
| Issue | What to Check |
| Products not displaying | Run Connection Test. Check API credentials are entered correctly. |
| Stale product data | Clear the cache in the Cache tab, then reload the post. |
| OAuth token errors | Verify Credential ID and Secret. Check that your API Version matches your region. |
| Images not loading | Check that your wp-content/uploads/ directory is writable. |
| Auto Mode not inserting products | Verify OpenAI API key is set. Check the Auto Mode tab for configuration. |
WordPress debug log: For deeper debugging, enable WP_DEBUG and WP_DEBUG_LOG in wp-config.php. WorkmanLinks writes detailed error information to wp-content/debug.log.
wp-config.php Constants
You can hardcode API credentials in wp-config.php instead of storing them in the database. This is useful for version-controlled environments or when you want to keep credentials out of the WordPress admin.
// Amazon Creators API (recommended)
define('WML_CREATORS_CREDENTIAL_ID', 'your-credential-id');
define('WML_CREATORS_CREDENTIAL_SECRET', 'your-credential-secret');
define('WML_CREATORS_VERSION', '2.1'); // 2.1=NA, 2.2=EU, 2.3=FE
define('WML_AWS_PARTNER_TAG', 'yoursite-20');
// Amazon PA-API 5.0 (legacy fallback)
define('WML_PAAPI_ACCESS_KEY', 'your-access-key');
define('WML_PAAPI_SECRET_KEY', 'your-secret-key');
define('WML_PAAPI_PARTNER_TAG', 'yoursite-20');
// OpenAI — for AI Auto Mode & Keyword Extraction (Pro)
define('WML_OPENAI_API_KEY', 'sk-...');
// Perplexity — for Trending News Harvester (Pro)
define('WML_PERPLEXITY_API_KEY', 'pplx-...');
// Freemius Dev Mode — for testing license activation
define('WP_FS__DEV_MODE', true);
Security: Constants defined in wp-config.php take priority over database-stored settings. Make sure wp-config.php is not publicly accessible.
Advanced Settings
The Advanced tab (Settings → WorkmanLinks → Advanced) contains additional configuration options:
- Cache duration — Adjust the primary cache TTL (default: 24 hours)
- Image caching — Enable/disable local image caching
- Batch processing — Configure batch image download settings
- Marketplace selection — Choose which Amazon marketplace(s) to target
- Template defaults — Set default shortcode template (light/dark)
- Click tracking — Enable/disable affiliate link click analytics
Frequently Asked Questions
Do I need both Creators API and PA-API?
No. You only need one. We recommend the Creators API (OAuth 2.0) since it's Amazon's current standard. PA-API 5.0 is supported as a fallback for existing setups.
Will my shortcodes break if I downgrade from Pro to Free?
No. Pro-only shortcodes like [wml_product] will simply not render on the free plan — they won't cause errors or break your pages. If you upgrade again, they'll start working immediately.
How many API calls does WorkmanLinks make?
Very few, thanks to the 24-hour smart cache. Each unique ASIN triggers one API call, then serves from cache for 24 hours. Returning visitors never trigger additional API calls.
Is WorkmanLinks compatible with page builders?
Yes. WorkmanLinks shortcodes work anywhere WordPress shortcodes are supported — Gutenberg, Classic Editor, Elementor, Divi, Beaver Builder, and more.
Is WorkmanLinks Amazon TOS compliant?
Yes. WorkmanLinks follows Amazon's affiliate program operating agreement. Product data is cached appropriately, prices are displayed according to Amazon's guidelines, and affiliate disclosures can be configured.
Can I use WorkmanLinks on a multisite network?
Yes. The Agency plan supports unlimited sites, including WordPress multisite installations.
Support
Need help? Here's how to reach us:
When contacting support, please include:
- Your WordPress version and PHP version
- The WorkmanLinks version (shown in the Diagnostics tab)
- A description of the issue and steps to reproduce
- Any relevant error messages from the Diagnostics tab