add tooltip

This commit is contained in:
David Remer 2020-07-02 10:02:22 +03:00
parent 4dadd6143f
commit 23ce2c6c09

View file

@ -67,6 +67,12 @@ class SettingsRenderer
<label
for="<?php echo esc_attr($id); ?>"
><?php echo esc_html($config['title']); ?></label>
<?php if (isset($config['desc_tip'])) : ?>
<span class="woocommerce-help-tip" data-tip="<?php echo esc_attr($config['description']); ?>"></span>
<?php
unset($config['description']);
endif;
?>
</th>
<td><?php
if ($config['type'] === 'ppcp-text' ) {