Automattic\WooCommerce\StoreApi\Utilities
RateLimits::get_option()
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() RateLimits::get option code WC 9.5.1
public static function get_option( $option ) { if ( ! is_string( $option ) || ! defined( 'RateLimits::' . strtoupper( $option ) ) ) { return null; } return self::get_options()[ $option ]; }