Yes, the plugin is mine, not a third party.
I would like to call the CSS so that when I install the plugin, it will be applied directly.
Using a theme child, I would have to apply CSS manually, with each new installation.
I know the best way would be to use wp_enqueue_style but I don’t know where to apply it within php.
function animers_woocommerce_order_details_before_order_table( $order ) { ?>
<h2 class=”woocommerce-order-details__title”>Histórico do Pedido</h2>
<div class=”collapsible-orders”>
<ul class=”order_notes” style=”display: flex; flex-direction: column-reverse;”>
<?php
$order_id = $order->get_id();
$order_notes = get_private_order_notes( $order_id );
echo $order->get_status();
if ( $order->get_status() == ‘completed’ || $order->get_status() == ‘processing’ ) :
foreach($order_notes as $note) {
$note_id = $note[‘note_id’];
$note_date = $note[‘note_date’];
$note_author = $note[‘note_author’];
$note_content = $note[‘note_content’];
$haystack = $note_content;
?>
<li class=”note system-note”>
<div class=”note_content”>
<?php echo ‘<p>’.$note_content.'</p>’; ?>
</div>
<p class=”meta”>
<abbr class=”exact-date” title=”<?php echo $note[‘note_date’]; ?>”><?php echo $note[‘note_date’]; ?></abbr>
</p>
<?php }
endif; ?>
</div>
<?php }