Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::get_parent_option()publicWC 1.0

Get custom option.

{} It's a method of the class: Task{}

No Hooks.

Return

Mixed|null.

Usage

$Task = new Task();
$Task->get_parent_option( $option_name );
$option_name(string) (required)
name of custom option.

Code of Task::get_parent_option() WC 6.9.4

public function get_parent_option( $option_name ) {
	if ( $this->task_list && isset( $this->task_list->options[ $option_name ] ) ) {
		return $this->task_list->options[ $option_name ];
	}
	return null;
}