Automattic\WooCommerce\StoreApi\Utilities
RateLimits::get_option
Gets a single option through provided name.
Method of the class: RateLimits{}
No Hooks.
Returns
Mixed.
Usage
$result = RateLimits::get_option( $option );
- $option(string) (required)
- Option name.
RateLimits::get_option() RateLimits::get option code WC 10.3.6
public static function get_option( $option ) {
if ( ! is_string( $option ) || ! defined( 'RateLimits::' . strtoupper( $option ) ) ) {
return null;
}
return self::get_options()[ $option ];
}