Skip to content

Commit

Permalink
Version 1.8 release.
Browse files Browse the repository at this point in the history
Version 1.8 release.
  • Loading branch information
andrewlimaza committed Feb 1, 2021
1 parent 656f12a commit 686d7db
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pmpro-pdf-invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://yoohooplugins.com/plugins/pmpro-pdf-invoices/
* Author: Yoohoo Plugins
* Author URI: https://yoohooplugins.com
* Version: 1.7
* Version: 1.8
* License: GPL2 or later
* Tested up to: 5.4
* Requires PHP: 5.6
Expand Down Expand Up @@ -38,7 +38,7 @@
define( 'YOOHOO_STORE', 'https://yoohooplugins.com/edd-sl-api/' );
}
define( 'PMPRO_PDF_PLUGIN_ID', 2117 );
define( 'PMPRO_PDF_VERSION', '1.7' );
define( 'PMPRO_PDF_VERSION', '1.8' );
define( 'PMPRO_PDF_DIR', dirname( __file__ ) );

define( 'PMPRO_PDF_LOGO_URL', 'PMPRO_PDF_LOGO_URL');
Expand Down Expand Up @@ -192,9 +192,9 @@ function pmpropdf_generate_pdf($order_data){
$date = isset( $order_data->timestamp) ? new DateTime( $order_data->timestamp ) : new DateTime();
$date = $date->format( "Y-m-d" );

$payment_method = !empty( $order_data->gateway ) ? $order_data->gateway : __( 'N/A', 'pmpro-pdf-invoices');
$payment_method = !empty( $order_data->gateway ) ? apply_filters( 'pmpro_pdf_gateway_string', $order_data->gateway ) : __( 'N/A', 'pmpro-pdf-invoices');

$order_level_name = 'Unknown';
$order_level_name = '';
if(function_exists('pmpro_getLevel')){
$order_level = pmpro_getLevel($order_data->membership_id);
if(!empty($order_level) && !empty($order_level->name)){
Expand Down
13 changes: 11 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ 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.5
Tested up to: 5.4
Tested up to: 5.6
Requires PHP: 5.6
Stable tag: trunk
Stable tag: 1.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -25,6 +25,15 @@ 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.8 - 01-02-2021 =
* Enhancement: Added in a filter to allow changing of the gateway name 'pmpro_pdf_gateway_string'
* Enhancement: Localize and escape strings that were missing. @mircobabini
* Enhancement: Added new filters 'pmpropdf_can_attach_pdf_email', 'pmpropdf_can_generate_pdf_on_added_order' and 'pmpro_pdf_invoice_name'. @mircobabini
* Enhancement: Adjusted the formatting of the {{billing_details}} template. @mircobabini
* Bug Fix/Enhancement: Get order level when generating templates instead of user's current level. @mircobabini
* Bug Fix: Fixed an issue with license key expiration date output not showing correctly.
* Bug Fix: Fixed issue where Yoohoo Plugins license key wasn't activating correctly.

= 1.7 - 15-05-2020 =
* Enhancement: Added fullscreen template editor
* Enhancement: Added custom 'unsaved changes' prompt, removed browser dialog (Still used if custom prompt cannot be shown for any reason)
Expand Down

0 comments on commit 686d7db

Please sign in to comment.