includes/class-wc-register-wp-admin-settings.php 1 location
|
@@ 101-107 (lines=7) @@
|
| 98 |
|
if ( isset( $setting['options'] ) ) { |
| 99 |
|
$new_setting['options'] = $setting['options']; |
| 100 |
|
} |
| 101 |
|
if ( isset( $setting['desc_tip'] ) ) { |
| 102 |
|
if ( true === $setting['desc_tip'] ) { |
| 103 |
|
$new_setting['tip'] = $setting['desc']; |
| 104 |
|
} else if ( ! empty( $setting['desc_tip'] ) ) { |
| 105 |
|
$new_setting['tip'] = $setting['desc_tip']; |
| 106 |
|
} |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
return $new_setting; |
| 110 |
|
} |
includes/abstracts/abstract-wc-settings-api.php 1 location
|
@@ 312-318 (lines=7) @@
|
| 309 |
|
* @return string |
| 310 |
|
*/ |
| 311 |
|
public function get_tooltip_html( $data ) { |
| 312 |
|
if ( $data['desc_tip'] === true ) { |
| 313 |
|
$tip = $data['description']; |
| 314 |
|
} elseif ( ! empty( $data['desc_tip'] ) ) { |
| 315 |
|
$tip = $data['desc_tip']; |
| 316 |
|
} else { |
| 317 |
|
$tip = ''; |
| 318 |
|
} |
| 319 |
|
|
| 320 |
|
return $tip ? wc_help_tip( $tip, true ) : ''; |
| 321 |
|
} |