Skip to content

Commit

Permalink
Update class-wcpdf-compatibility-third-party-plugins.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmigf committed Jul 18, 2024
1 parent b5c82bc commit 537788d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ public function add_wpc_product_bundles_classes ( $classes, $document_type, $ord
* @return string
*/
public function add_yith_product_bundles_classes( string $classes, ?string $document_type, ?object $order, $item_id = 0 ): string {
if ( empty( $order ) ) {
return $classes;
}

if ( ! $order instanceof \WC_Abstract_Order ) {
return $classes;
}
Expand Down

0 comments on commit 537788d

Please sign in to comment.