Settings_Submodule_Trait::get_option( string $option, mixed $default = false )

Retrieves the value of a specific submodule option.

Description

Parameters

$option

(string) (Required) Name of the option to retrieve.

$default

(mixed) (Optional) Value to return if the option doesn't exist.

Default value: false

Return

(mixed) Value set for the option.

Source

File: src/modules/settings-submodule-trait.php

	public function get_option( $option, $default = false ) {
		return $this->module->get_option( $this->get_settings_identifier() . '__' . $option, $default );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.