
什么是PHP Worker及应该如何使用
apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy, $post )
get_{$adjacent}_post_join: 此函数用于检索查询中连接表的SQL语句,以获得相邻文章。
为相邻的post查询过滤SQL中的JOIN子句。
钩子名称的动态部分$adjacent
指的是邻接类型,“next”或“previous”。
可能的钩子名称包括:
get_next_post_join
get_previous_post_join
$join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy, $post );