| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public static function site_has_vip_index() { |
||
| 39 | $has_vip_index = ( |
||
| 40 | Constants::is_defined( 'JETPACK_SEARCH_VIP_INDEX' ) && |
||
| 41 | Constants::get_constant( 'JETPACK_SEARCH_VIP_INDEX' ) |
||
| 42 | ); |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Allows developers to filter whether the current site has a VIP index. |
||
| 46 | * |
||
| 47 | * @module search |
||
| 48 | * |
||
| 49 | * @since 5.8.0 |
||
| 50 | * |
||
| 51 | * @param bool $has_vip_index Whether the current site has a VIP index. |
||
| 52 | */ |
||
| 53 | return apply_filters( 'jetpack_search_has_vip_index', $has_vip_index ); |
||
| 54 | } |
||
| 55 | |||
| 58 |