diff --git a/includes/functions.php b/includes/functions.php index e72184690..34e3298d9 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -3434,6 +3434,19 @@ function pmpro_cleanup_memberships_users_table() { $wpdb->query( $sqlQuery ); } +/** + * Whether the current page is a PMPRO page or not. + * + * @since TBD + * + * @return bool + */ +function pmpro_is_page() { + global $pmpro_pages; + + return is_page( $pmpro_pages ); +} + /** * Are we on the PMPro checkout page? * @since 2.1