Properties

$settings_structure

$settings_structure : 

Type

$previous_licenses

$previous_licenses : 

Type

$need_change_permalinks

$need_change_permalinks : 

Type

Methods

__construct()

__construct() 

Admin_Settings constructor.

init_variables()

init_variables() 

sorting_licenses_options()

sorting_licenses_options(  $settings) : mixed

Parameters

$settings

Returns

mixed

get_section_fields()

get_section_fields(  $tab,   $section) : array

Parameters

$tab
$section

Returns

array

primary_admin_menu()

primary_admin_menu() 

Setup admin menu

settings_page()

settings_page() 

Settings page callback

generate_tabs_menu()

generate_tabs_menu(string  $page = 'settings') : string

Generate pages tabs

Parameters

string $page

Returns

string

generate_subtabs_menu()

generate_subtabs_menu(string  $tab = '') : string

Parameters

string $tab

Returns

string

save_settings_handler()

save_settings_handler() 

Handler for settings forms when "Save Settings" button click

remove_empty_values()

remove_empty_values(  $settings) : array

Remove empty values from multi text fields

Parameters

$settings

Returns

array

check_permalinks_changes()

check_permalinks_changes() 

on_settings_save()

on_settings_save() 

before_licenses_save()

before_licenses_save() 

licenses_save()

licenses_save() 

check_wrong_licenses()

check_wrong_licenses() 

settings_before_email_tab()

settings_before_email_tab() 

settings_email_tab()

settings_email_tab(  $section) : string

Parameters

$section

Returns

string

settings_appearance_profile_tab()

settings_appearance_profile_tab() 

settings_licenses_tab()

settings_licenses_tab(  $html,   $section_fields) : string

Parameters

$html
$section_fields

Returns

string

settings_install_info_tab()

settings_install_info_tab(  $html,   $section_fields) 

Parameters

$html
$section_fields

um_download_install_info()

um_download_install_info() 

info_value()

info_value(string  $raw_value = '', string  $type = 'yesno', string  $default = '') : string

Parameters

string $raw_value
string $type
string $default

Returns

string

render_settings_section()

render_settings_section(  $section_fields,   $current_tab,   $current_subtab) : string

Render settings section

Parameters

$section_fields
$current_tab
$current_subtab

Returns

string

save_email_templates()

save_email_templates(  $settings) : mixed

Parameters

$settings

Returns

mixed