| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Read-side queries against published WordPress content (posts, pages, images, |
| 9 |
* tags, categories). Used by spell-check / suggestion ranking and by view |
| 10 |
* rendering pipelines that need a live snapshot of published content. |
| 11 |
*/ |
| 12 |
interface ABJ_404_Solution_PublishedContentLookupInterface { |
| 13 |
|
| 14 |
/** |
| 15 |
* Find published posts and pages using named query criteria. |
| 16 |
* Unknown keys and non-scalar values are ignored for forward compatibility. |
| 17 |
* |
| 18 |
* @param array{slug?: string, search_term?: string, limit_results?: string, order_results?: string, extra_where_clause?: string} $criteria |
| 19 |
* @return array<int, object> |
| 20 |
*/ |
| 21 |
public function getPublishedPagesAndPostsIDs(array $criteria = array()); |
| 22 |
|
| 23 |
/** |
| 24 |
* @param string|null $slug |
| 25 |
* @param int|null $limit |
| 26 |
* @return array<int, object> |
| 27 |
*/ |
| 28 |
public function getPublishedTags($slug = null, $limit = null); |
| 29 |
|
| 30 |
/** |
| 31 |
* @param array<int, object> $rows |
| 32 |
* @return array<int, object> |
| 33 |
*/ |
| 34 |
public function addURLToTermsRows($rows); |
| 35 |
|
| 36 |
/** |
| 37 |
* @param int|null $term_id |
| 38 |
* @param string|null $slug |
| 39 |
* @param int|null $limit |
| 40 |
* @return array<int, object> |
| 41 |
*/ |
| 42 |
public function getPublishedCategories($term_id = null, $slug = null, $limit = null); |
| 43 |
} |
| 44 |
|