PluginProbe
404 Solution / trunk
404 Solution vtrunk
4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.19 4.1.18 4.1.17 4.1.16 4.1.15 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.1.7 4.1.6 4.1.5 4.1.4 4.1.3 trunk 2.30.0 All 109 releases
404-solution / includes / repositories / PublishedContentLookupInterface.php

PublishedContentLookupInterface.php in 404 Solution trunk, at includes/repositories/PublishedContentLookupInterface.php

44 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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