nf_license_settings_no_licenses_notice

Output a message letting the user know that they don't have any extensions with licenses activated.

Description

nf_license_settings_no_licenses_notice(); 

Usage

  1. if ( !function_exists( 'nf_license_settings_no_licenses_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/pages/ninja-forms-settings/tabs/license-settings/license-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nf_license_settings_no_licenses_notice(); 
  7.  

Defined (1)

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

/deprecated/includes/admin/pages/ninja-forms-settings/tabs/license-settings/license-settings.php  
  1. function nf_license_settings_no_licenses_notice() { 
  2. global $ninja_forms_tabs_metaboxes; 
  3.  
  4. if ( isset ( $ninja_forms_tabs_metaboxes['ninja-forms-settings']['license_settings']['license_settings']['settings'] ) ) { 
  5. return false; 
  6.  
  7. $desc = sprintf( __( 'To activate licenses for Ninja Forms extensions you must first %sinstall and activate%s the chosen extension. License settings will then appear below.', 'ninja-forms' ), '<a target="_blank" href="https://ninjaforms.com/docs/installation/">', '</a>' ); 
  8. ?> 
  9. <tr id="row_license_key"> 
  10. <td colspan="2"><?php echo $desc; ?></td> 
  11. </tr> 
  12. <?php