edd_add_setting_tooltip

The Easy Digital Downloads edd add setting tooltip function.

Description

edd_add_setting_tooltip( $html, $args ); 

Parameters (2)

0. $html
The html.
1. $args
The args.

Usage

  1. if ( !function_exists( 'edd_add_setting_tooltip' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'easy-digital-downloads/includes/admin/settings/register-settings.php'; 
  3.  
  4. // The html. 
  5. $html = null; 
  6.  
  7. // The args. 
  8. $args = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = edd_add_setting_tooltip($html, $args); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/admin/settings/register-settings.php  
  1. function edd_add_setting_tooltip( $html, $args ) { 
  2.  
  3. if ( ! empty( $args['tooltip_title'] ) && ! empty( $args['tooltip_desc'] ) ) { 
  4. $tooltip = '<span alt="f223" class="edd-help-tip dashicons dashicons-editor-help" title="<strong>' . $args['tooltip_title'] . '</strong>: ' . $args['tooltip_desc'] . '"></span>'; 
  5. $html .= $tooltip; 
  6.  
  7. return $html;