| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | public static function site_has_vip_index() { |
||
| 55 | $has_vip_index = ( |
||
| 56 | Constants::is_defined( 'JETPACK_SEARCH_VIP_INDEX' ) && |
||
| 57 | Constants::get_constant( 'JETPACK_SEARCH_VIP_INDEX' ) |
||
| 58 | ); |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Allows developers to filter whether the current site has a VIP index. |
||
| 62 | * |
||
| 63 | * @module search |
||
| 64 | * |
||
| 65 | * @since 5.8.0 |
||
| 66 | * |
||
| 67 | * @param bool $has_vip_index Whether the current site has a VIP index. |
||
| 68 | */ |
||
| 69 | return apply_filters( 'jetpack_search_has_vip_index', $has_vip_index ); |
||
| 70 | } |
||
| 71 | |||
| 74 |