Meta_Submodule_Trait::get_form_option( int $form_id, string $option, mixed $default = false )

Retrieves the value of a specific submodule form option.

Description

Parameters

$form_id

(int) (Required) Form ID.

$option

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

$default

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

Default value: false

Return

(mixed) Value set for the form option.

Source

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

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

Changelog

Changelog
Version Description
1.0.0 Introduced.