um_add_licenses_tab

The Ultimate Member um add licenses tab function.

Description

um_add_licenses_tab( $sections ); 

Parameters (1)

0. $sections
The sections.

Usage

  1. if ( !function_exists( 'um_add_licenses_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ultimate-member/core/um-filters-addons.php'; 
  3.  
  4. // The sections. 
  5. $sections = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = um_add_licenses_tab($sections); 
  9.  

Defined (1)

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

/core/um-filters-addons.php  
  1. function um_add_licenses_tab($sections) { 
  2. global $ultimatemember; 
  3.  
  4. $fields = array(); 
  5. $fields = apply_filters('um_licensed_products_settings', $fields ); 
  6.  
  7. if ( $fields ) { 
  8.  
  9. $sections[] = array( 
  10.  
  11. 'icon' => 'um-faicon-key',  
  12. 'title' => __( 'Licenses', 'ultimatemember'),  
  13. 'fields' => $fields,  
  14. 'subsection' => false,  
  15.  
  16. ); 
  17.  
  18.  
  19. return $sections; 
  20.