Properties

$config

$config : array

Settings Config.

Type

normal

$sanitize_map

$sanitize_map : array

Data array using for sanitizing setting on save.

Type

normal

Methods

__construct()

__construct() : mixed

Settings constructor.

Returns

mixed

add_custom_content_tab()

add_custom_content_tab(mixed  $custom_array) : mixed

Parameters

mixed $custom_array

Returns

mixed

sorting_modules_options()

sorting_modules_options(array  $settings) : array

Add "Modules > Modules" subtab if there are any registered modules. Sorting modules by the title.

Parameters

array $settings

Returns

array

settings_custom_subtabs()

settings_custom_subtabs(array  $subtabs, string  $tab) : array

Set Modules > Modules subtab as settings pages with custom content without a standard settings form.

Parameters

array $subtabs
string $tab

Returns

array

settings_modules_section()

settings_modules_section() : mixed

Show Modules List_table on the Modules > Modules subtab.

Returns

mixed

save_settings()

save_settings() : mixed

Handler for settings forms when "Save Settings" button click.

Returns

mixed

multi_email_sanitize()

multi_email_sanitize(string  $value) : string

Sanitize emails separated by the "," symbol and put them back to the same string but sanitized.

Parameters

string $value

Returns

string

init()

init() : mixed

Set JB Settings.

Returns

mixed

email_templates_list_table()

email_templates_list_table() : mixed

Display Email Notifications Templates List

Returns

mixed

email_template_fields()

email_template_fields(array  $fields, string  $tab) : array

Edit email template fields

Parameters

array $fields
string $tab

Returns

array

conditional_includes()

conditional_includes() : mixed

Include admin files conditionally.

Returns

mixed

job_base_slug_input()

job_base_slug_input() : mixed

Show a slug input box for job post type slug.

Returns

mixed

job_type_slug_input()

job_type_slug_input() : mixed

Show a slug input box for job type slug.

Returns

mixed

job_category_slug_input()

job_category_slug_input() : mixed

Show a slug input box for job category slug.

Returns

mixed

permalinks_save()

permalinks_save() : mixed

Save permalinks handler

Returns

mixed

tabs_menu()

tabs_menu() : string

Generate pages tabs

Returns

string

subtabs_menu()

subtabs_menu(string  $tab = '') : string

Generate sub-tabs

Parameters

string $tab

Returns

string

display_section()

display_section(string  $current_tab, string  $current_subtab) : string

Render settings section

Parameters

string $current_tab
string $current_subtab

Returns

string

get_settings()

get_settings(string  $tab = '', string  $section = '', bool  $assoc = false) : bool|array

Get settings section

Parameters

string $tab
string $section
bool $assoc

Return Associated array

Returns

bool|array

section_is_custom()

section_is_custom(string  $current_tab, string  $current_subtab) : bool

Checking if the settings section is custom

Parameters

string $current_tab
string $current_subtab

Returns

bool

save_email_templates()

save_email_templates( $settings) : mixed

Parameters

$settings

Returns

mixed

override_templates_list_table()

override_templates_list_table() : mixed

Returns

mixed

jb_check_template_version()

jb_check_template_version() : void

Periodically checking the versions of templates.

get_override_templates()

get_override_templates( $get_list = false) : array|void

Parameters

$get_list

Returns

array|void

get_file_version()

get_file_version( $file) : string

Parameters

$file

Returns

string

scan_template_files()

scan_template_files(string  $template_path) : array

Scan the template files.

Parameters

string $template_path

Path to the template directory.

Returns

array