WordPress Plugin Setup

Platform-specific configuration for API Mapper on WordPress

This page is for 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_options table

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:

  1. Go to Settings → API Mapper
  2. Click Clear All Caches

Alternatively, clearing transients via WP-CLI:

wp transient delete --all

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.php if needed: define('REST_API_ENABLED', true);

Slow API Responses

  • Enable object caching (Redis/Memcached)
  • Increase cache duration in connection settings
  • Use _embed parameter to reduce API calls

Next Steps

Was this page helpful?

On this page