In a display of wordpress, I used the esc_html__() method to escape the string and add variables for safe use in HTML output.
My code is as follows:
<?php
global $product, $post;
$posts_id = $product->get_id();
$reserve_price = get_post_meta($posts_id, '_auction_reserved_price', true);
if ($product->is_reserved() === true && $product->is_reserve_met() === false) : ?>
<p class="reserve hold" data-auction-id="<?php echo esc_attr( $product->get_id() ); ?>">
<?php echo apply_filters('reserve_bid_text', esc_html__('Reserve price has not been met, needed to enter $ %s or more', 'wc_simple_auctions', $reserve_price)); ?>
</p>
<?php endif; ?>
But my variable is not output to the final value, the output string I get is this:
I tried before $reserve_price is a non-empty variable, but esc_html__() doesn't output the correct information to the page.
I am not quite sure about this reason.


