Automattic\WooCommerce\StoreApi\Utilities

RateLimits::get_option()public staticWC 1.0

Gets a single option through provided name.

Method of the class: RateLimits{}

No Hooks.

Return

Mixed.

Usage

$result = RateLimits::get_option( $option );
$option(string) (required)
Option name.

RateLimits::get_option() code WC 8.6.1

public static function get_option( $option ) {

	if ( ! is_string( $option ) || ! defined( 'RateLimits::' . strtoupper( $option ) ) ) {
		return null;
	}

	return self::get_options()[ $option ];
}