WordPress integration
WordPress

Wire AEO Pro into WordPress in three steps

Auto-inject Article, FAQPage, and BreadcrumbList JSON-LD on every post and page; keep llms.txt and the AI-bot allowlist in sync. End-to-end in about 12 minutes.

Time required: ~12 minutes
Best for: WordPress site owners & developers

3-step setup

  1. 1

    Generate an API key in Dashboard → API Keys

    Sign into AEO Pro, open /dashboard/settings/api-keys, click "Generate new key". Copy the aeopro_ string — you'll paste it in the next step. Free plan ships with 100 calls/hour, plenty for a single WordPress site.

  2. 2

    Drop this snippet into your theme's functions.php (or as an mu-plugin)

    Once saved, WordPress will inject AEO-Pro-generated Article / FAQPage / BreadcrumbList JSON-LD into every singular post + page <head>. Tip: keep it in mu-plugins so theme updates don't blow it away.

    Code samplephp · mu-plugin
    <?php
    /**
     * Plugin Name: AEO Pro Schema Injector
     * Description: Injects Article / FAQPage / BreadcrumbList JSON-LD via AEO Pro REST API.
     */
    if (!defined('ABSPATH')) exit;
    
    add_action('wp_head', function () {
      if (!is_singular()) return;
      $cache_key = 'aeopro_schema_' . get_the_ID();
      $cached    = get_transient($cache_key);
      if ($cached === false) {
        $resp = wp_remote_post('https://www.aeo-pro.app/api/v1/schema/generate', [
          'headers' => [
            'Authorization' => 'Bearer ' . AEOPRO_API_KEY, // wp-config.php
            'Content-Type'  => 'application/json',
          ],
          'body' => wp_json_encode([
            'url'   => get_permalink(),
            'types' => ['Article', 'FAQPage', 'BreadcrumbList'],
          ]),
          'timeout' => 6,
        ]);
        if (is_wp_error($resp)) return;
        $cached = wp_remote_retrieve_body($resp);
        set_transient($cache_key, $cached, HOUR_IN_SECONDS);
      }
      echo $cached;
    }, 5);
  3. 3

    Enable llms.txt + AI-bot allowlist sync

    Add AEOPRO_API_KEY to wp-config.php, then go to AEO Pro Dashboard → Sites → Add Site and register your domain. We auto-publish /llms.txt and surface robots.txt allowlist suggestions; the file refreshes within 5 minutes of any dateModified change.

    Code samplewp-config.php
    define('AEOPRO_API_KEY', 'aeopro_xxxxxxxxxxxxxxxxxxxxxxxxxxxx');
    define('AEOPRO_AUTO_LLMS_TXT', true);
    define('AEOPRO_AUTO_ROBOTS_ALLOWLIST', true);

FAQ

Do I need WooCommerce?
No. This integration works with any WordPress install. WooCommerce stores can additionally toggle Product schema auto-injection from Dashboard → Sites → WooCommerce.
Will it slow my site down?
No. Schema is cached per post via WordPress transients (1 hour), so visitors hit a local cache. The initial API call uses a 6-second timeout and skips gracefully on failure.
Can I inject schema on only some posts?
Yes. Swap is_singular() with your own predicate — e.g. has_category('aeo') or in_array(get_the_ID(), [123, 456]).
Does it support Multisite?
Yes — issue one API key per network site and write it into that site's wp-config block. AEO Pro groups multiple sites under one workspace so you can compare scores across the network.

Want to see how your site scores first?

30-second scan, three-dimensional score, top 5 fixable issues. No sign-up, no card.