check for desc_tip true

This commit is contained in:
David Remer 2020-07-02 10:03:06 +03:00
parent 23ce2c6c09
commit e2c4d45f1a

View file

@ -67,7 +67,7 @@ class SettingsRenderer
<label
for="<?php echo esc_attr($id); ?>"
><?php echo esc_html($config['title']); ?></label>
<?php if (isset($config['desc_tip'])) : ?>
<?php if (isset($config['desc_tip']) && $config['desc_tip']) : ?>
<span class="woocommerce-help-tip" data-tip="<?php echo esc_attr($config['description']); ?>"></span>
<?php
unset($config['description']);