' . __('Your payment has been submitted. Your membership will be activated shortly.', 'paid-memberships-pro' ) . '
'; } else { $confirmation_message = '' . sprintf(__('Thank you for your membership to %s. Your %s membership is now active.', 'paid-memberships-pro' ), get_bloginfo("name"), $pmpro_invoice->membership_level->name) . '
'; } // Add the level confirmation message if set. $level_message = $wpdb->get_var("SELECT confirmation FROM $wpdb->pmpro_membership_levels WHERE id = '" . intval( $pmpro_invoice->membership_id ) . "' LIMIT 1"); if ( ! empty( $level_message ) ) { $confirmation_message .= wpautop( stripslashes( $level_message ) ); } // Add some details to the confirmation message about the invoice. if ( ! pmpro_isLevelFree( $pmpro_invoice->membership_level ) ) { $confirmation_message .= '' . sprintf( __( 'Below are details about your membership account and a receipt for your initial membership invoice. A welcome email with a copy of your initial membership invoice has been sent to %s.', 'paid-memberships-pro' ), $pmpro_invoice->user->user_email ) . '
'; } else { $confirmation_message .= '' . sprintf( __( 'Below are details about your membership account. A welcome email has been sent to %s.', 'paid-memberships-pro' ), $pmpro_invoice->user->user_email ) . '
'; } /** * Allow devs to filter the confirmation message. * We also have a function in includes/filters.php that applies the the_content filters to this message. * @param string $confirmation_message The confirmation message. * @param object $pmpro_invoice The PMPro Invoice/Order object. */ $confirmation_message = apply_filters( "pmpro_confirmation_message", $confirmation_message, $pmpro_invoice ); echo wp_kses_post( $confirmation_message ); if ( ! pmpro_isLevelFree( $pmpro_invoice->membership_level ) ) { // If the invoice is not free, show the full invoice, but make sure we don't show $pmpro_msg again. $pmpro_msg = false; $pmpro_msgt = false; echo pmpro_loadTemplate( 'invoice' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { // The invoice is free, so we don't need to show a full invoice. ?>