get_{$adjacent}_post_where

最后更新于:2021-11-27 00:16:14

apply_filters( “get_{$adjacent}_post_where”, string $where, bool $in_same_term, array $excluded_terms, string $taxonomy, GC_Post $post )

Filters the WHERE clause in the SQL for an adjacent post query.

参数

$where

(string)
The WHERE clause in the SQL.

$in_same_term

(bool)
Whether post should be in a same taxonomy term.

$excluded_terms

(array)
Array of excluded term IDs.

$taxonomy

(string)
Taxonomy. Used to identify the term used when $in_same_term is true.

$post

(GC_Post)
GC_Post object.

源文件

文件: gc-includes/link-template.php

View on Trac