Retrieves the value of a specific submodule option.
Description
See also
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-interface.php
public function get_option( $option, $default = false );
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |