monsterinsights_upgrade_notice_callback

Upgrade Notice Callback.

Description

monsterinsights_upgrade_notice_callback( (array) $args ); 

Renders upgrade notice fields.

Parameters (1)

0. $args (array)
Arguments passed by the setting

Usage

  1. if ( !function_exists( 'monsterinsights_upgrade_notice_callback' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/admin/settings/settings-api.php'; 
  3.  
  4. // Arguments passed by the setting 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = monsterinsights_upgrade_notice_callback($args); 
  9.  

Defined (1)

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

/includes/admin/settings/settings-api.php  
  1. function monsterinsights_upgrade_notice_callback( $args ) { 
  2. $html = '<div class="monsterinsights-upsell-box"><h2>' . esc_html( $args['name' ] ) . '</h2>' 
  3. . '<p class="upsell-lite">' . $args['desc'] . '</p>' 
  4. . '</div>'; 
  5. return apply_filters( 'monsterinsights_after_setting_output', $html, $args );