Recent

Settings class

Settings

Settings class.

Namespace: WebberZone\Code_Block_Highlighting\Admin
Since: 1.0.0
Source: includes/admin/class-settings.php line 22

Methods

__construct()

Constructor.

Since: 1.1.0
Line: 88

public function __construct(  );

initialise_settings()

Initialise the Settings_API instance.

Since: 1.1.0
Line: 98

public function initialise_settings(  ): void;

Returns: void

get_settings_sections() static

Get settings sections (tabs).

Since: 1.1.0
Line: 168

static public function get_settings_sections(  ): array;

Returns: array

get_registered_settings() static

Get registered settings.

Since: 1.1.0
Line: 181

static public function get_registered_settings(  ): array;

Returns: array

settings_defaults() static

Get default settings values derived from registered settings.

Since: 1.1.0
Line: 251

static public function settings_defaults(  ): array;

Returns: array — Default settings.

get_language_field_attributes() static

Get field attributes for the Tom Select language picker.

Since: 1.1.0
Line: 281

static public function get_language_field_attributes(  ): array;

Returns: array

enqueue_language_data()

Inject Prism language list into WZTomSelectSettings for the settings page autocomplete.

Since: 1.1.0
Line: 302

public function enqueue_language_data( string $hook ): void;
TypeNameDescription
string$hookCurrent admin page hook.

Returns: void

get_color_scheme_css() static

Get the URL (or filesystem path) to the active color scheme CSS file.

Returns the plain unminified LTR path; enqueuing with SCRIPT_DEBUG and RTL awareness is handled by Styles_Handler.

Since: 1.0.0
Line: 335

static public function get_color_scheme_css( bool $return_path = ... ): string;
TypeNameDescription
bool$return_pathWhen true, returns the filesystem path instead of the URL.

Returns: string