Skip to content

Instantly share code, notes, and snippets.

@ideadude
ideadude / pmpro_modal_checkout.php
Last active November 7, 2022 16:38
Example to add a modal checkout popup to every page with Paid Memberships Pro
<?php
/**
* Define the default level to use for the modal
*/
define('PMPRO_MODAL_CHECKOUT_DEFAULT_LEVEL', 1);
/**
* Load the checkout preheader on every page
* We won't be processing on every page, but we
* want the code that sets up the level and