Settings_Compatibility implements Registerable, Standard_Service

Compatibility layer to translate the v2 settings into the v1 option calls.

We do this because the PTP core internally use the individual settings keys across the codebase. The new settings-api use a single option.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

handle_document_fields()  : mixed
Handle the document fields display option.
handle_document_page()  : mixed
Handle the document page option.
handle_document_slug()  : mixed
Handle the document slug option.
handle_folder_close_svg()  : mixed
Handle the folder close SVG option.
handle_folder_open_svg()  : mixed
Handle the folder open SVG option.
handle_misc_options()  : mixed
Handle the misc options.
handle_search_page()  : mixed
Handle the search page option.
handle_shortcode_option()  : array<string|int, mixed>
Handle the shortcodes option.
handle_single_document_display()  : mixed
Handle the single document display option.
register()  : mixed
{@inheritdoc}

Methods

handle_document_fields()

Handle the document fields display option.

public handle_document_fields() : mixed
Tags
Return values
mixed

handle_document_page()

Handle the document page option.

public handle_document_page(array<string|int, mixed> $option) : mixed
Parameters
$option : array<string|int, mixed>
Tags
Return values
mixed

handle_document_slug()

Handle the document slug option.

public handle_document_slug(array<string|int, mixed> $option) : mixed
Parameters
$option : array<string|int, mixed>
Tags
Return values
mixed

handle_folder_close_svg()

Handle the folder close SVG option.

public handle_folder_close_svg(array<string|int, mixed> $option) : mixed
Parameters
$option : array<string|int, mixed>
Tags
Return values
mixed

handle_folder_open_svg()

Handle the folder open SVG option.

public handle_folder_open_svg(array<string|int, mixed> $option) : mixed
Parameters
$option : array<string|int, mixed>
Tags
Return values
mixed

handle_misc_options()

Handle the misc options.

public handle_misc_options(array<string|int, mixed> $option) : mixed
Parameters
$option : array<string|int, mixed>
Tags
Return values
mixed

handle_search_page()

Handle the search page option.

public handle_search_page(array<string|int, mixed> $option) : mixed
Parameters
$option : array<string|int, mixed>
Tags
Return values
mixed

handle_shortcode_option()

Handle the shortcodes option.

public handle_shortcode_option(mixed $option) : array<string|int, mixed>
Parameters
$option : mixed
Tags
Return values
array<string|int, mixed>

handle_single_document_display()

Handle the single document display option.

public handle_single_document_display(array<string|int, mixed> $option) : mixed
Parameters
$option : array<string|int, mixed>
Tags
Return values
mixed

Search results