Options
Functions for handling the Posts Table Pro plugin options.
Tags
Table of Contents
- MISC_OPTION_KEY = 'dlp_misc_settings'
- SEARCH_PAGE_KEY = 'dlp_search_page'
- SHORTCODE_OPTION_KEY = 'dlp_shortcode_defaults'
- get_cache_expiration_length() : mixed
- get_design_template_settings() : array<string|int, mixed>
- Retrieves the design template settings by merging defaults with saved options.
- get_misc_options() : mixed
- get_search_page_option() : mixed
- get_setting_table_styling() : mixed
- get_shortcode_options() : mixed
- merge_design_defaults_with_options() : array<string|int, mixed>
- Merges the default design settings with saved options.
- get_option() : mixed
- table_settings_to_args() : mixed
Constants
MISC_OPTION_KEY
public
mixed
MISC_OPTION_KEY
= 'dlp_misc_settings'
Tags
SEARCH_PAGE_KEY
public
mixed
SEARCH_PAGE_KEY
= 'dlp_search_page'
Tags
SHORTCODE_OPTION_KEY
public
mixed
SHORTCODE_OPTION_KEY
= 'dlp_shortcode_defaults'
Tags
Methods
get_cache_expiration_length()
public
static get_cache_expiration_length() : mixed
Tags
Return values
mixed —get_design_template_settings()
Retrieves the design template settings by merging defaults with saved options.
public
static get_design_template_settings() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The merged template settings.
get_misc_options()
public
static get_misc_options() : mixed
Tags
Return values
mixed —get_search_page_option()
public
static get_search_page_option() : mixed
Tags
Return values
mixed —get_setting_table_styling()
public
static get_setting_table_styling() : mixed
Tags
Return values
mixed —get_shortcode_options()
public
static get_shortcode_options([array<string|int, mixed> $defaults = [] ]) : mixed
Parameters
- $defaults : array<string|int, mixed> = []
Tags
Return values
mixed —merge_design_defaults_with_options()
Merges the default design settings with saved options.
public
static merge_design_defaults_with_options(array<string|int, mixed> $defaults, array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
- $defaults : array<string|int, mixed>
-
The default design settings.
- $options : array<string|int, mixed>
-
The saved design options from the settings.
Tags
Return values
array<string|int, mixed> —The merged design settings, with saved options overriding defaults.
get_option()
private
static get_option(mixed $option, mixed $default) : mixed
Parameters
- $option : mixed
- $default : mixed
Tags
Return values
mixed —table_settings_to_args()
private
static table_settings_to_args(array<string|int, mixed> $options[, array<string|int, mixed> $defaults = [] ]) : mixed
Parameters
- $options : array<string|int, mixed>
- $defaults : array<string|int, mixed> = []