Connect Your AI to PMPro.
Give ChatGPT, Claude, or your coding agent PMPro’s docs and source code, so it answers from the real thing and shows you where it looked.
Requires a paid PMPro plan: Standard, Plus, or Max.
Works with ClaudeChatGPTClaude CodeCursorCodexGemini CLIVS Code
It Connects What You See to What PMPro Offers.
Ask about something odd in your orders list and your AI looks up what it means in PMPro’s docs and code, then points you to the Add On built for it.
In Claude Code, it can check your site and set that Add On up for you, too.
- Explains token orders from PMPro’s docs and code.
- Suggests the Add On made for the problem.
- Checks your site and offers to install it.
What does the “token” status mean for orders? I’m seeing a bunch of them.
PMPro: searching the docs order status token
PMPro: searching the code MemberOrder token status
A token order is a checkout that started but never finished. PMPro saves the order as token right before it sends someone to an off-site payment page, like PayPal or Stripe Checkout. If the gateway confirms the payment, it flips to success. If not, it stays token.
Usually that’s people who reached the payment page and left. Worth one check: if any of them match real payments in your gateway dashboard, a webhook isn’t reaching your site.
For the ones who left, the Abandoned Cart Recovery Add On emails them up to three reminders and tracks how much you recover.
Sources: Order statuses, MemberOrder class, Abandoned Cart Recovery
How do I set that up?
Bash wp plugin list –search=abandoned
Bash wp option get pmpro_license_key
It isn’t installed, and this site doesn’t have a PMPro license key.
Abandoned Cart Recovery is a Premium Add On, but its code is public on GitHub, so I can install the latest release from there. You won’t get automatic updates or support for it without a Standard or Max plan.
Want me to install it from GitHub and turn it on for your paid levels?
Setup Help That Matches How the Add On Really Works.
Your AI reads the integration’s docs and its code, so it can tell you which events it sends, what goes to Google, and what you still have to set up on Google’s side.
- Finds the Google Analytics Add On.
- Checks its code for the user ID and purchase event.
- Tells you what to set up in GA4.
How do I get GA4 analytics set up so I can see which pages lead to signups? And will it pass the user ID?
PMPro: searching the docs Google Analytics GA4 integration
PMPro: searching the code pmpro-google-analytics user_id
Use the Google Analytics Add On for PMPro. Paste your GA4 Measurement ID (it starts with G-; GTM codes won’t work) and turn off any other GA plugin so pageviews don’t double up.
Pages that lead to signups: the Add On sends a purchase event on the confirmation page. In GA4, mark it as a key event, then build an exploration with landing page as the dimension and key events as the metric.
User ID: yes, for logged-in members. It sends the WordPress user ID, not their email. Visitors who haven’t signed up yet won’t have one.
Sources: Google Analytics Add On, its code
Your Claude Code Builds Like Our Developers Do.
It works with full knowledge of how Paid Memberships Pro and its nearly 80 Add Ons are coded.
With WordPress, there are unlimited ways to build custom functionality. The skill is in figuring out which method is best for each specific site. With the PMPro MCP, your AI has better data, so it makes better decisions.
- Finds the hook that fits, and every place it fires.
- Writes a small plugin around it.
- Flags what the hook doesn’t cover.
I need a small custom plugin: when someone gets our Pro level (ID 3), add them to our CRM. What’s the best way to do it?
PMPro: searching the code pmpro_after_checkout
PMPro: searching the code pmpro_after_change_membership_level
Which CRM are you using? PMPro has Add Ons for ActiveCampaign, Keap, and Zapier, so you may not need custom code at all.
It’s our own CRM. It takes a JSON POST at a webhook URL.
PMPro: searching the docs membership level change hooks
Then a small plugin works. Use pmpro_after_change_membership_level, not pmpro_after_checkout. The checkout hook skips members an admin adds by hand, or that an import or another plugin gives the level. This one runs every time a level changes, checkout included.
<?php
/**
* Plugin Name: Send Pro Members to Our CRM
*/
add_action( 'pmpro_after_change_membership_level', function( $level_id, $user_id ) {
if ( 3 !== (int) $level_id ) {
return;
}
$user = get_userdata( $user_id );
wp_remote_post( 'https://crm.example.com/webhooks/pmpro', array(
'blocking' => false, // Don't slow down checkout.
'headers' => array( 'Content-Type' => 'application/json' ),
'body' => wp_json_encode( array(
'email' => $user->user_email,
'name' => $user->display_name,
'level' => 'Pro',
) ),
) );
}, 10, 2 );
It also runs when a level is removed, with a level ID of 0, so the check at the top skips those. Want me to tell your CRM when someone loses Pro, too?
Sources: pmpro_after_change_membership_level, pmpro_after_checkout, PMPro core code
The Best Fix, Not Just Any Fix That Works.
There are lots of ways to restyle a levels page. Your AI can see what PMPro and its Add Ons already do, so it reaches for a setting before custom code, and knows where custom code belongs when you do need it.
- Finds the Add On that already does this.
- Reads its layout and highlight options.
- Offers the theme template route for full control.
Our levels page is just a plain list. Can I make it a real pricing table, three columns with the annual plan highlighted?
PMPro: searching the docs levels page pricing table layout
PMPro: searching the code pmpro_advanced_levels highlight layout
Yes, and you don’t need custom code for it. The Advanced Levels Page Add On does this. Add its block to your levels page, pick the 3-column layout, and choose the annual level to highlight. Or use the shortcode:
[pmpro_advanced_levels layout="3col" highlight="3"]
Swap 3 for your annual level’s ID. compare_table is the other layout worth a look if you want levels side by side in a table.
If you want it to match your theme exactly, the other route is copying PMPro’s levels template to your-theme/paid-memberships-pro/pages/levels.php, and I can build the cards there.
Sources: Advanced Levels Page Add On, its code
Paste an Error. Find Out Whose It Is.
Your AI can check any function in an error message against PMPro’s code, so it can tell whether PMPro, another plugin, or the way they load together is the problem, and what to do first.
- Looks up the function from the error.
- Confirms it’s still in PMPro, and where.
- Gets your site back up, then fixes the cause.
My site says “There has been a critical error” after updates. The log says: PHP Fatal error: Uncaught Error: Call to undefined function pmpro_getMembershipLevelForUser() in /wp-content/plugins/member-tools/member-tools.php:42. Is this PMPro or the other plugin?
PMPro: searching the code pmpro_getMembershipLevelForUser
PMPro: searching the docs undefined function fatal error after update
Most likely member-tools. pmpro_getMembershipLevelForUser() still exists in current PMPro (includes/functions.php), so it wasn’t removed. The error means member-tools ran while PMPro wasn’t loaded: either PMPro got deactivated or half-updated, or member-tools calls it too early.
- Rename
wp-content/plugins/member-toolstomember-tools-offover SFTP to get back into wp-admin. - Make sure PMPro is there and active. If the update failed, reinstall it from the ZIP.
- Ask the member-tools author to wrap the call in
function_exists()or run it oninit.
If PMPro was active the whole time, tell me your version and I’ll dig further.
Ask Your First Question in a Minute.
Connect once, and your AI checks PMPro’s docs and code every time you ask.

