| 1 | <?php |
||
| 17 | class Jetpack_Search_Options { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The search widget's base ID. |
||
| 21 | * |
||
| 22 | * @since 5.8.0 |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | const FILTER_WIDGET_BASE = 'jetpack-search-filters'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Prefix for options in DB. |
||
| 29 | * |
||
| 30 | * @since 8.3.0 |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | const OPTION_PREFIX = 'jetpack_search_'; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Returns a boolean for whether instant search is enabled. |
||
| 37 | * |
||
| 38 | * @since 8.3.0 |
||
| 39 | * |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public static function is_instant_enabled() { |
||
| 43 | return Constants::is_true( 'JETPACK_SEARCH_PROTOTYPE' ); |
||
| 44 | } |
||
| 45 | |||
| 46 | |||
| 47 | /** |
||
| 48 | * Returns a boolean for whether the current site has a VIP index. |
||
| 49 | * |
||
| 50 | * @since 5.8.0 |
||
| 51 | * |
||
| 52 | * @return bool |
||
| 53 | */ |
||
| 54 | public static function site_has_vip_index() { |
||
| 71 | |||
| 72 | |||
| 73 | } |
||
| 74 |