File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,14 @@ class="<?php echo $current_section === $section->slug ? 'current' : ''; ?>"
194194 <?php if ( '$0.00 ' === $ addon ->price ) : ?>
195195 <span class="price"><?php esc_html_e ( 'Free ' , 'woocommerce ' ); ?> </span>
196196 <?php else : ?>
197+ <?php
198+ $ price_suffix = __ ( 'per year ' , 'woocommerce ' );
199+ if ( $ addon ->price_suffix ) {
200+ $ price_suffix = $ addon ->price_suffix ;
201+ }
202+ ?>
197203 <span class="price"><?php echo wp_kses_post ( $ addon ->price ); ?> </span>
198- <span class="price-suffix"><?php esc_html_e ( ' per year ' , ' woocommerce ' ); ?> </span>
204+ <span class="price-suffix"><?php echo esc_html ( $ price_suffix ); ?> </span>
199205 <?php endif ; ?>
200206 </div>
201207 <?php if ( ! empty ( $ addon ->reviews_count ) && ! empty ( $ addon ->rating ) ) : ?>
You can’t perform that action at this time.
0 commit comments