Api_Credentials::filter_option_with_env( bool|mixed $value, string $option, mixed $default )

Summary

No summary available.

Parameters

$value

(bool|mixed) (Required)

$option

(string) (Required)

$default

(mixed) (Required)


Return

(mixed)


Source

File: src/BigCommerce/Settings/Sections/Api_Credentials.php

	public function filter_option_with_env( $value, $option, $default ) {
		if ( empty( $value ) ) {
			$env = $this->get_option_from_env( $option );
			if ( $env ) {
				return $env;
			}
		}

		return $value;
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.