Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlimaza committed Mar 7, 2023
1 parent ef5d8c3 commit 0d98b78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 5 additions & 2 deletions pmpro-pdf-invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://yoohooplugins.com
* Version: 1.20
* License: GPL2 or later
* Tested up to: 6.0
* Tested up to: 6.1
* Requires PHP: 7.2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: pmpro-pdf-invoices
Expand Down Expand Up @@ -184,7 +184,7 @@ function pmpropdf_generate_pdf($order_data, $return_dom_pdf = false){

$user = get_user_by('ID', $order_data->user_id);

$dompdf = new Dompdf( array( 'enable_remote' => true ) );
$dompdf = new Dompdf( apply_filters( 'pmpropdf_dompdf_args', array( 'enable_remote' => true ) ) );
$body = pmpropdf_get_order_template_html();

// Build the string for billing data.
Expand Down Expand Up @@ -265,6 +265,9 @@ function pmpropdf_generate_pdf($order_data, $return_dom_pdf = false){
}

$dompdf->loadHtml( $body );

$dompdf = apply_filters( 'pmpropdf_dompdf_before_render', $dompdf );

$dompdf->render();

// This allows calling functions to get access to the dompdf instance, instead of storing
Expand Down
11 changes: 6 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: andrewza, yoohooplugins
Tags: pdf, pdf invoice, invoices
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4GC4JEZH7KSKL
Requires at least: 4.9
Tested up to: 6.0
Requires PHP: 7.0
Stable tag: 1.11
Requires at least: 5.0
Tested up to: 6.1
Requires PHP: 7.2
Stable tag: 1.20
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -25,12 +25,13 @@ Paid Memberships Pro PDF Invoices plugin will generate PDF Invoices for members
Yes the PDF templates are customizable and use general HTML code with custom tags to replace values in the template.

== Changelog ==
= 1.2 - TBD =
= 1.20 - 2023-03-07 =
* ENHANCEMENT: Added new templates: green, blank and split.
* ENHANCEMENT: Adjusted logic for [pmpropdf_download_list], this now allows logged-in non-members to access past PDF invoices.
* ENHANCEMENT: Added logic to generate single PDF Invoices from the Paid Memberships Pro Orders admin table.
* ENHANCEMENT: Added more PDF variables: {{admin_email}}, {{membership_description}} and {{membership_level_confirmation_message}}.
* ENHANCEMENT: Only show the NGINX nudge message on PMPro dashboard pages.
* ENHANCEMENT: Added a filter to adjust the DOMPDF object before it's used to generate the PDF: pmpropdf_dompdf_before_render.
* BUG FIX: Fixed an issue when regenerating PDF invoices would give you the current date and not the date of the order.

= 1.11 - 2022-09-14 =
Expand Down

0 comments on commit 0d98b78

Please sign in to comment.