Skip to content

Commit

Permalink
Update class-wcpdf-packing-slip.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmigf committed Oct 8, 2024
1 parent a8eee3c commit 42f2a43
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions includes/documents/class-wcpdf-packing-slip.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public function __construct( $order = 0 ) {
public function get_title() {
// override/not using $this->title to allow for language switching!
$title = __( 'Packing Slip', 'woocommerce-pdf-invoices-packing-slips' );
return apply_filters_deprecated( "wpo_wcpdf_{$this->slug}_title", array( $title, $this ), '3.8.7', 'wpo_wcpdf_document_title' );
$title = apply_filters_deprecated( "wpo_wcpdf_{$this->slug}_title", array( $title, $this ), '3.8.7', 'wpo_wcpdf_document_title' ); // deprecated
return apply_filters( 'wpo_wcpdf_document_title', $title, $this );
}

/**
Expand All @@ -50,7 +51,8 @@ public function get_title() {
public function get_number_title() {
// override to allow for language switching!
$title = __( 'Packing Slip Number:', 'woocommerce-pdf-invoices-packing-slips' );
return apply_filters_deprecated( "wpo_wcpdf_{$this->slug}_number_title", array( $title, $this ), '3.8.7', 'wpo_wcpdf_document_number_title' );
$title = apply_filters_deprecated( "wpo_wcpdf_{$this->slug}_number_title", array( $title, $this ), '3.8.7', 'wpo_wcpdf_document_number_title' ); // deprecated
return apply_filters( 'wpo_wcpdf_document_number_title', $title, $this );
}

/**
Expand All @@ -61,7 +63,8 @@ public function get_number_title() {
public function get_date_title() {
// override to allow for language switching!
$title = __( 'Packing Slip Date:', 'woocommerce-pdf-invoices-packing-slips' );
return apply_filters_deprecated( "wpo_wcpdf_{$this->slug}_date_title", array( $title, $this ), '3.8.7', 'wpo_wcpdf_document_date_title' );
$title = apply_filters_deprecated( "wpo_wcpdf_{$this->slug}_date_title", array( $title, $this ), '3.8.7', 'wpo_wcpdf_document_date_title' );
return apply_filters( 'wpo_wcpdf_document_date_title', $title, $this );
}

public function get_filename( $context = 'download', $args = array() ) {
Expand Down

0 comments on commit 42f2a43

Please sign in to comment.