| 1857 | | $query = "SELECT p.ID FROM $wpdb->posts AS p $join $where $sort"; |
| | 1857 | $query = "SELECT p.ID FROM $wpdb->posts AS p $join $where $sort"; |
| | 1858 | |
| | 1859 | /** |
| | 1860 | * Filters the final SQL for an adjacent post query. |
| | 1861 | * |
| | 1862 | * The dynamic portion of the hook name, `$adjacent`, refers to the type |
| | 1863 | * of adjacency, 'next' or 'previous'. |
| | 1864 | * |
| | 1865 | * @since 5.6.0 |
| | 1866 | * |
| | 1867 | * @param string $query The final SQL. |
| | 1868 | * @param WP_Post $post WP_Post object. |
| | 1869 | */ |
| | 1870 | $query = apply_filters( "get_{$adjacent}_post_query", $query, $post ); |
| | 1871 | |