mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-18 07:12:55 +00:00
2.6.1
This commit is contained in:

committed by
Remco Tolsma

parent
42964bef17
commit
a60db3815d
25
includes/admin/meta-boxes/views/html-unknown-related-orders-row.php
Executable file
25
includes/admin/meta-boxes/views/html-unknown-related-orders-row.php
Executable file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Display a row in the related orders table for a unknown subscription or order.
|
||||
*
|
||||
* @var int $order_id A WC_Order or WC_Subscription order id.
|
||||
* @var string $relationship The order's or subscription's relationship.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo sprintf( esc_html_x( '#%s', 'hash before order number', 'woocommerce-subscriptions' ), esc_html( $order_id ) ); ?>
|
||||
<div class="wcs-unknown-order-info-wrapper">
|
||||
<a href="https://docs.woocommerce.com/document/subscriptions/orders/#section-8"><?php echo wcs_help_tip( sprintf( "This %s couldn't be loaded from the database. %s Click to learn more.", $relationship, '</br>' ) ); ?></a>
|
||||
</div>
|
||||
</td>
|
||||
<td><?php echo esc_html( $relationship ); ?></td>
|
||||
<td>—</td>
|
||||
<td>—</td>
|
||||
<td>—</td>
|
||||
</tr>
|
Reference in New Issue
Block a user