WordPress Plugin Setup
Platform-specific configuration for API Mapper on WordPress
WordPress Plugin Setup
This guide covers WordPress-specific aspects of API Mapper, including where to find settings, how caching integrates with WordPress, and platform-specific tips.
Plugin Location
After installing API Mapper through your YOOtheme child theme, you'll find the settings in the WordPress admin:
Settings Access:
- Navigate to Settings → API Mapper in your WordPress admin
- Or access connections directly through the YOOtheme Customizer
WordPress Transients Caching
API Mapper uses WordPress Transients for caching API responses. This integrates seamlessly with:
- Object Caching: If you use Redis or Memcached, transients are automatically stored there
- Database Fallback: Without object caching, transients use the
wp_optionstable
For high-traffic sites, we recommend enabling an object cache plugin like Redis Object Cache for better performance.
Clearing the Cache
To clear API Mapper's cache:
- Go to Settings → API Mapper
- Click Clear All Caches
Alternatively, clearing transients via WP-CLI:
REST API Considerations
When connecting to external WordPress sites, remember:
- WordPress REST API is available at
/wp-json/wp/v2/ - Public endpoints (posts, pages) don't require authentication
- Use Application Passwords for private content (Settings → Users → Application Passwords)
Multisite Compatibility
API Mapper works on WordPress Multisite installations:
- Install the child theme on each site that needs API connections
- Each site maintains its own connections and cache
- Network-wide settings are not currently supported
Common WordPress Issues
"rest_no_route" Error
The REST API might be disabled. Check:
- Security plugins (Wordfence, iThemes) may block REST API
- Add to
wp-config.phpif needed:define('REST_API_ENABLED', true);
Slow API Responses
- Enable object caching (Redis/Memcached)
- Increase cache duration in connection settings
- Use
_embedparameter to reduce API calls
Next Steps
- First Connection - Create your first API connection
- Caching - Optimize cache settings
- WooCommerce Guide - Connect to WooCommerce APIs
Was this page helpful?